code: def test_seinfeld_dataset():
      import dtale.global_state as global_state
  
      global_state.clear_store()
  
      def mock_load_csv(**kwargs):
          return pd.DataFrame(dict(SEID=["a"]))
  
      with build_app(url=URL).test_client() as c:
          with ExitStack() as stack:
              stack.enter_context(
                  mock.patch(
                      "dtale.cli.loaders.csv_loader.loader_func",
                      mock_load_csv,
                  )
              )
              c.get(
                  "/dtale/datasets",
                  query_string=dict(dataset="seinfeld"),
              )
              assert global_state.get_data(1).SEID.values[0] == "a"
  
file_path: dtale/tests/dtale/test_upload.py
imports: import os
  import mock
  import pandas
  import pytest
  from six import BytesIO, PY3
  from dtale.app import build_app
  from dtale.pandas_util import check_pandas_version
  from tests import ExitStack
  from tests.dtale import build_data_inst
label_desc: Use image node_id 5 for calling a global function with example usage: test_seinfeld_dataset() and returns: pd