def generate_measurements(party, label):
measurements = []<EOL>for i in range(len(party)):<EOL><INDENT>measurements.append(generate_operators(label + '<STR_LIT:%s>' % i, party[i] - <NUM_LIT:1>,<EOL>hermitian=True))<EOL><DEDENT>return measurements<EOL>
Generate variables that behave like measurements.

    :param party: The list of number of measurement outputs a party has.
    :type party: list of int.
    :param label: The label to be given to the symbolic variables.
    :type label: str.

    :returns: list of list of
             :class:`sympy.physics.quantum.operator.HermitianOperator`.