code: def test_shell_completion_source():
      # just smoke test that produced shell script sources nicely without error
      WitlessRunner().run(
          ["bash", "-c", "source <(datalad shell-completion)"]
      )
  
imports: from datalad.api import shell_completion
  from datalad.cmd import WitlessRunner
  from datalad.tests.utils_pytest import assert_cwd_unchanged, eq_, skip_if_on_windows, swallow_outputs
label_desc: Use image node_id 2 for calling a global function with example usage: test_shell_completion_source() without return types