code: def test_ssh_ipv4_6():
      # This should fail with a RuntimeError if a version is not supported (we're
      # not bothering to check what datalad-test supports), but if the processing
      # fails, it should be something else.
      for kwds in [{"ipv4": True}, {"ipv6": True}]:
          try:
              sshrun("datalad-test", "true", **kwds)
          except RuntimeError:
              pass
          except UnsupportedOperation as exc:
              pytest.skip(f"stdin is swallowed by pytest: {exc}")
  
file_path: datalad/datalad/support/tests/test_sshrun.py
imports: import sys
  from io import StringIO, UnsupportedOperation
  import pytest
  from unittest.mock import patch
  from datalad.api import sshrun
  from datalad.cli.main import main
  from datalad.cmd import StdOutCapture, WitlessRunner
  from datalad.tests.utils_pytest import SkipTest, assert_equal, assert_raises, skip_if_on_windows, skip_ssh, swallow_outputs, with_tempfile
label_desc: Use image node_id 6 for calling a global function with example usage: test_ssh_ipv4_6() without return types