parameters: (key, value)
return_statement: return value
docstring: Convert value to a SimulatorSetup
docstring_summary: Convert value to a SimulatorSetup
docstring_tokens: Convert value to a SimulatorSetup
function: def _prepare_for_simulator_setup(key, value):
      """Convert value to a SimulatorSetup"""
      if key == "attached_instruments" and value:
          return {Mount[mount.upper()]: data for (mount, data) in value.items()}
      if key == "config" and value:
          return robot_configs.build_config(value)
      if key == "attached_modules" and value:
          return {k: [ModuleCall(**data) for data in v] for (k, v) in value.items()}
      return value
function_tokens: def _prepare_for_simulator_setup ( key , value ) : if key == "attached_instruments" and value : return { Mount [ mount . upper ( ) ] : data for ( mount , data ) in value . items ( ) } if key == "config" and value : return robot_configs . build_config ( value ) if key == "attached_modules" and value : return { k : [ ModuleCall ( * * data ) for data in v ] for ( k , v ) in value . items ( ) } return value