code: def get_git_status():
      info = {
          "remotes": [],
          "commit": "unknown",
          "commit_message": "",
          "is_dirty": False,
          "diff": "",
      }
  
      try:
          import git
      except ImportError:
          return info, "no_gitpython"
  
      try:
          repo = git.Repo(lab_singleton().path)
  
          try:
              info["remotes"] = list(repo.remote().urls)
          except (ValueError, git.GitCommandError):
              pass
          info["commit"] = repo.head.commit.hexsha
          info["commit_message"] = repo.head.commit.message.strip()
          info["is_dirty"] = repo.is_dirty()
          info["diff"] = repo.git.diff()
      except (git.InvalidGitRepositoryError, ValueError):
          if not is_colab() and not is_kaggle():
              return info, "no_git"
          else:
              return info, "no_git_google_colab"
  
      return info, None
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_git_status() and returns: info,  None, info,  str, info,  str, info,  str