code: def test_internal(mocker):
      assert "dash" in ComponentRegistry.registry
      mocker.patch(
          "dash.development.base_component.ComponentRegistry.registry"
      )
      ComponentRegistry.registry = {"dash", "dash.dcc", "dash.html"}
  
      mocker.patch("dash.dcc._js_dist")
      mocker.patch("dash.dcc.__version__")
      mocker.patch("dash.html._js_dist")
      dcc._js_dist = _monkey_patched_js_dist  # noqa: W0212,
      dcc.__version__ = "1.0.0"
  
      app = dash.Dash(
          __name__,
          assets_folder="tests/assets",
          assets_ignore="load_after.+.js",
      )
      app.layout = dcc.Markdown()
  
      assert (
          app.scripts.config.serve_locally
          and app.css.config.serve_locally
      )
  
      with mock.patch("dash.dash.os.stat", return_value=StatMock()):
          with mock.patch(
              "dash.dash.importlib.import_module", return_value=dcc
          ):
              resource = app._collect_and_register_resources(
                  app.scripts.get_all_scripts()
              )
  
      assert resource == [
          "/_dash-component-suites/"
          "dash/external_javascript.v1_0_0m1.js",
          "/_dash-component-suites/dash/external_css.v1_0_0m1.css",
          "/_dash-component-suites/dash/fake_dcc.v1_0_0m1.js",
      ]
  
      assert (
          "fake_dcc.min.js.map" in app.registered_paths["dash"]
      ), "Dynamic resource not available in registered path {}".format(
          app.registered_paths["dash"]
      )
  
file_path: dash/tests/unit/test_resources.py
imports: import mock
  import dash
  from dash import dcc, html
  from dash.development.base_component import ComponentRegistry
label_desc: Use image node_id 3 for calling a global function with example usage: test_internal(mocker) without return types