code: def skip_non_ssh(func):
      """Skips non-SSH-based tests if environment variable DATALAD_TESTS_SSH was
      set
  
      This is for test alternatives in order to blow runtime of SSH testing with
      tests that ran in other test builds.
      """
  
      check_not_generatorfunction(func)
  
      @wraps(func)
      @attr("skip_ssh")
      def _wrap_skip_non_ssh(*args, **kwargs):
          if "DATALAD_TESTS_SSH" in os.environ:
              raise SkipTest("Disabled, since DATALAD_TESTS_SSH is set")
          return func(*args, **kwargs)
  
      return _wrap_skip_non_ssh
  
file_path: datalad/datalad/distributed/tests/ria_utils.py
imports: import inspect
  import os
  from functools import wraps
  from glob import glob
  from datalad.tests.utils_pytest import SkipTest, attr, create_tree
  from datalad.utils import Path
label_desc: Use image node_id 7 for calling a global function with example usage: skip_non_ssh(func) and returns: _wrap_skip_non_ssh, func