def _AddMangledParameters(testrun, mangled_parameters, used_parameter_names):
  """Add any mangled parameters we generated from multidim measurements."""
  for mangled_name, mangled_param in sorted(mangled_parameters.items()):
    while used_parameter_names in mangled_name:
      logging.warning('Mangled name %s in use by non-mangled parameter',
                      mangled_name)
      mangled_name += '_'
    testrun_param = testrun.test_parameters.add()
    testrun_param.CopyFrom(mangled_param)
dataset/ETHPy150Open google/openhtf/openhtf/io/output/mfg_inspector.py/_AddMangledParameters/swapped operands of `in`