code: def test_magic_assign_781():
      assert _PYTHON_MAGIC_ASSIGN.match("name = %magic")
      assert _PYTHON_MAGIC_ASSIGN.match("# name = %magic")
      assert not _PYTHON_MAGIC_ASSIGN.match("# not a name = %magic")
      assert not _PYTHON_MAGIC_ASSIGN.match("# 0name = %magic")
      assert is_magic(
          "result = %sql SELECT * FROM quickdemo WHERE value > 25",
          "python",
      )
  
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 19 for calling a global function with example usage: test_magic_assign_781() without return types