code: def _add_git_info(experiment: Experiment, logger):
      wrk_space: Artifact = experiment.artifacts.get("workspace", None)
      if wrk_space is not None:
          if wrk_space.local_path is not None and os.path.exists(
              wrk_space.local_path
          ):
              if logger is not None:
                  logger.info(
                      "git location for experiment %s",
                      wrk_space.local_path,
                  )
              experiment.git = git_util.get_git_info(
                  wrk_space.local_path
              )
  
file_path: studio/studio/experiment_submitter.py
imports: import json
  import os
  import time
  import traceback
  from studio.artifacts.artifact import Artifact
  from studio.db_providers import db_provider_setup
  from studio.experiments.experiment import Experiment
  from studio import git_util
  from studio.payload_builders.payload_builder import PayloadBuilder
  from studio.payload_builders.unencrypted_payload_builder import UnencryptedPayloadBuilder
  from studio.encrypted_payload_builder import EncryptedPayloadBuilder
  from studio.storage import storage_setup
  from studio.util import util
label_desc: Use image node_id 2 for calling a global function with example usage: _add_git_info(experiment, logger) without return types