def parse_pair_args(labels, argclass):
label_data = set()<EOL>for arg in labels:<EOL><INDENT>name, value = split_pair(arg, '<STR_LIT:=>', nullable_idx=<NUM_LIT:1>)<EOL>label_data.add(argclass(name, value))<EOL><DEDENT>return label_data<EOL>
Parse flags of key=value pairs and return a list of argclass.

    For pair variables, we need to:
       * split the input into name=value pairs (value optional)
       * Create the EnvParam object

    Args:
      labels: list of 'key' or 'key=value' strings.
      argclass: Container class for args, must instantiate with argclass(k, v).

    Returns:
      list of argclass objects.