code: def enable_test_module():
      os.environ["RAY_DASHBOARD_MODULE_TEST"] = "true"
      import ray.dashboard.tests
  
      p = (
          pathlib.Path(ray.dashboard.modules.__path__[0])
          / "tests"
          / "__init__.py"
      )
      p.touch(exist_ok=False)
      yield
      os.environ.pop("RAY_DASHBOARD_MODULE_TEST", None)
      p.unlink(missing_ok=False)
  
file_path: ray/dashboard/tests/conftest.py
imports: import os
  import pytest
  import pathlib
  from ray.tests.conftest import *
label_desc: Use image node_id 1 for calling a global function with example usage: enable_test_module() without return types