def METHOD_NAME(cls, obj: JobBaseData) -> "Import":
    from .import_func import import_job
    rest_command_job: RestCommandJob = obj.properties
    inputs = from_rest_inputs_to_dataset_literal(rest_command_job.inputs)
    outputs = from_rest_data_outputs(rest_command_job.outputs)
    import_job = import_job(
        name=obj.name,
        display_name=rest_command_job.display_name,
        description=rest_command_job.description,
        experiment_name=rest_command_job.experiment_name,
        status=rest_command_job.status,
        creation_context=obj.system_data,
        inputs=inputs,
        output=outputs["output"] if "output" in outputs else None,
    )
    import_job._id = obj.id
    import_job.component._source = ComponentSource.REMOTE_WORKSPACE_JOB  # This is used by pipeline job telemetries.
    return import_job