code: def add_interchange_module_for_old_pandas():
      if not hasattr(pd.api, "interchange"):
          with mock.patch.object(
              pd.api, "interchange", mock.MagicMock(), create=True
          ):
              # to make the following import work: `import pandas.api.interchange`
              with mock.patch.dict(
                  "sys.modules",
                  {"pandas.api.interchange": pd.api.interchange},
              ):
                  yield
      else:
          yield
  
imports: import plotly.express
  import plotly.graph_objects
  import numpy
  import pandas
  import pytest
  from packaging import version
  import unittest.mock
  from plotly.express._core import build_dataframe
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 1 for calling a global function with example usage: add_interchange_module_for_old_pandas() without return types