parameters: (
          self,
          instrument_load_info: LegacyInstrumentLoadInfo,
      )
return_statement: return load_pipette_command
docstring: Map a legacy instrument (pipette) load to a ProtocolEngine command.
docstring_summary: Map a legacy instrument (pipette) load to a ProtocolEngine command.
docstring_tokens: Map a legacy instrument ( pipette ) load to a ProtocolEngine command .
function: def map_instrument_load(
          self,
          instrument_load_info: LegacyInstrumentLoadInfo,
      ) -> pe_commands.Command:
          """Map a legacy instrument (pipette) load to a ProtocolEngine command."""
          now = ModelUtils.get_timestamp()
          count = self._command_count["LOAD_PIPETTE"]
          command_id = f"commands.LOAD_PIPETTE-{count}"
          pipette_id = f"pipette-{count}"
          mount = MountType(str(instrument_load_info.mount).lower())
  
          load_pipette_command = pe_commands.LoadPipette.construct(
              id=command_id,
              key=command_id,
              status=pe_commands.CommandStatus.SUCCEEDED,
              createdAt=now,
              startedAt=now,
              completedAt=now,
              params=pe_commands.LoadPipetteParams.construct(
                  pipetteName=pe_types.PipetteName(
                      instrument_load_info.instrument_load_name
                  ),
                  mount=mount,
              ),
              result=pe_commands.LoadPipetteResult.construct(pipetteId=pipette_id),
          )
  
          self._command_count["LOAD_PIPETTE"] = count + 1
          self._pipette_id_by_mount[mount] = pipette_id
          return load_pipette_command
function_tokens: def map_instrument_load ( self , instrument_load_info : LegacyInstrumentLoadInfo , ) -> pe_commands . Command : now = ModelUtils . get_timestamp ( ) count = self . _command_count [ "LOAD_PIPETTE" ] command_id = f"commands.LOAD_PIPETTE-{count}" pipette_id = f"pipette-{count}" mount = MountType ( str ( instrument_load_info . mount ) . lower ( ) ) load_pipette_command = pe_commands . LoadPipette . construct ( id = command_id , key = command_id , status = pe_commands . CommandStatus . SUCCEEDED , createdAt = now , startedAt = now , completedAt = now , params = pe_commands . LoadPipetteParams . construct ( pipetteName = pe_types . PipetteName ( instrument_load_info . instrument_load_name ) , mount = mount , ) , result = pe_commands . LoadPipetteResult . construct ( pipetteId = pipette_id ) , ) self . _command_count [ "LOAD_PIPETTE" ] = count + 1 self . _pipette_id_by_mount [ mount ] = pipette_id return load_pipette_command