code: def test_covid_dataset():
      import dtale.global_state as global_state
  
      global_state.clear_store()
  
      def mock_load_csv(**kwargs):
          if (
              kwargs.get("path")
              == "https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-states.csv"
          ):
              return pd.DataFrame(dict(state=["a", "b"]))
          elif (
              kwargs.get("path")
              == "https://raw.githubusercontent.com/jasonong/List-of-US-States/master/states.csv"
          ):
              return pd.DataFrame(dict(State=["a"], Abbreviation=["A"]))
          return None
  
      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="covid")
              )
              assert (
                  global_state.get_data(1).state_code.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 4 for calling a global function with example usage: test_covid_dataset() and returns: None, pd, pd