code: def test_fancy_quotes(f=None):
      cmd = [
          "datalad",
          "sshrun",
          "datalad-test",
          """'cat '"'"'%s'"'"''""" % f,
      ]
      out = WitlessRunner().run(cmd, protocol=StdOutCapture)
      assert_equal(out["stdout"], "magic")
  
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 3 for calling a global function with example usage: test_fancy_quotes(f) without return types