code: def test_git_transport_ri():
      _check_ri(
          "gcrypt::http://somewhere",
          GitTransportRI,
          RI="http://somewhere",
          transport="gcrypt",
      )
      # man git-push says
      #  <transport>::<address>
      #    where <address> may be a path, a server and path, or an arbitrary URL-like string...
      # so full path to my.com/... should be ok?
      _check_ri(
          "http::/my.com/some/path",
          GitTransportRI,
          RI="/my.com/some/path",
          transport="http",
      )
      # some ssh server.  And we allow for some additional chars in transport.
      # Git doesn't define since it does not care! we will then be flexible too
      _check_ri(
          "trans-port::server:path",
          GitTransportRI,
          RI="server:path",
          transport="trans-port",
      )
  
imports: import logging
  import os
  import tempfile
  from os.path import isabs
  from os.path import join
  import pytest
  import datalad.support.network
  from datalad.distribution.dataset import Dataset
  from datalad.support.network import RI, SSHRI, URL, DataLadRI, GitTransportRI, PathRI, _split_colon, dlurljoin, get_local_file_url, get_response_disposition_filename, get_tld, get_url_straight_filename, is_datalad_compat_ri, is_ssh, is_url, iso8601_to_epoch, local_path_representation, local_path2url_path, local_url_path_representation, parse_url_opts, quote_path, same_website, urlquote, url_path2local_path
  from datalad.tests.utils_pytest import OBSCURE_FILENAME, SkipTest, assert_in, assert_raises, assert_status, eq_, get_most_obscure_supported_name, known_failure_githubci_win, neq_, nok_, ok_, skip_if, swallow_logs, with_tempfile
  from datalad.utils import Path, PurePosixPath, on_windows
  from ..network import rfc2822_to_epoch
label_desc: Use image node_id 15 for calling a global function with example usage: test_git_transport_ri() without return types