code: def test_non_ray_modules():
      modules = getmembers(ray, ismodule)
      for name, mod in modules:
          assert "ray" in str(
              mod
          ), f"Module {mod} should not be reachable via ray.{name}"
  
file_path: ray/python/ray/tests/test_top_level_api.py
imports: from inspect import getmembers, isfunction, ismodule
  import sys
  import pytest
  import ray
label_desc: Use image node_id 2 for calling a global function with example usage: test_non_ray_modules() without return types