code: def test_indented_magic():
      assert is_magic("    !rm file", "python")
      assert is_magic("    # !rm file", "python")
      assert is_magic("    %cd", "python")
      assert comment_magic(["    !rm file"]) == ["    # !rm file"]
      assert uncomment_magic(["    # !rm file"]) == ["    !rm file"]
      assert comment_magic(["    %cd"]) == ["    # %cd"]
      assert uncomment_magic(["    # %cd"]) == ["    %cd"]
  
imports: import pytest
  from nbformat.v4.nbbase import new_code_cell, new_notebook
  import jupytext
  from jupytext.compare import compare, compare_notebooks, notebook_model
  from jupytext.magics import _PYTHON_MAGIC_ASSIGN, comment_magic, is_magic, uncomment_magic, unesc
label_desc: Use image node_id 18 for calling a global function with example usage: test_indented_magic() without return types