code: def git_server(request, test_config):
      import asyncssh
      from sshfs import SSHFileSystem
  
      test_config.requires("ssh")
      docker_services = request.getfixturevalue("docker_services")
      conn_info = {
          "host": "127.0.0.1",
          "port": docker_services.port_for("git-server", 2222),
      }
  
      def get_fs():
          return SSHFileSystem(
              **conn_info,
              username=TEST_SSH_USER,
              client_keys=[TEST_SSH_KEY_PATH],
          )
  
      def _check():
          try:
              fs = get_fs()
              fs.exists("/")
              fs.execute("git --version")
          except asyncssh.Error:
              return False
          else:
              return True
  
      docker_services.wait_until_responsive(
          timeout=30.0, pause=1, check=_check
      )
      return conn_info
  
file_path: dvc/tests/remotes/git_server.py
imports: import pytest
  from dvc_ssh.tests.cloud import SSH, TEST_SSH_KEY_PATH, TEST_SSH_USER
label_desc: Use image node_id 1 for calling a global function with example usage: git_server(request, test_config) and returns: conn_info, SSHFileSystem, True, False