code: def test_getting_git_info(self, repo_mock):
      # given
      now = datetime.datetime.now()
      repo = repo_mock.return_value
      repo.is_dirty.return_value = True
      repo.head.commit.hexsha = "sha"
      repo.head.commit.message = "message"
      repo.head.commit.author.name = "author_name"
      repo.head.commit.author.email = "author@email"
      repo.head.commit.committed_datetime = now
      repo.active_branch.name = "master"
      repo.remotes = []
  
      # when
      git_info = get_git_info("")
  
      # then
      self.assertEqual(
          git_info,
          GitInfo(
              commit_id="sha",
              message="message",
              author_name="author_name",
              author_email="author@email",
              commit_date=now,
              repository_dirty=True,
              active_branch="master",
              remote_urls=[],
          ),
      )
  
file_path: neptune-client/tests/unit/neptune/legacy/test_git_info.py
imports: import datetime
  import unittest
  import mock
  from neptune.common.utils import get_git_info
  from neptune.legacy.git_info import GitInfo
label_desc: Use image node_id 2 for calling the TestGitInfo obj's underlying member method code with example usage: obj.test_getting_git_info(repo_mock) without return types