code: def patch_varname_getter():
      """Patches streamlit.elements.doc_string so _get_variable_name() works outside ScriptRunner."""
      parent_frame_filename = inspect.getouterframes(
          inspect.currentframe()
      )[2].filename
  
      return patch(
          "streamlit.elements.doc_string.SCRIPTRUNNER_FILENAME",
          parent_frame_filename,
      )
  
imports: import inspect
  import sys
  import unittest
  from unittest.mock import patch
  import numpy
  import pytest
  import streamlit
  from streamlit.elements.doc_string import _get_variable_name_from_code_str
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 1 for calling a global function with example usage: patch_varname_getter() and returns: patch