code: def test_dependency():
      ray.init(num_cpus=2)
  
      register_trainable("my_class", f)
      run_experiments(
          {
              "test": {
                  "run": "my_class",
                  "stop": {"training_iteration": 1},
              }
          }
      )
      assert (
          "ray.rllib" not in sys.modules
      ), "RLlib should not be imported"
      assert (
          "mlflow" not in sys.modules
      ), "MLflow should not be imported"
      ray.shutdown()
  
imports: import sys
  import pytest
  import ray
  from ray import train
  from ray.tune import register_trainable, run_experiments
label_desc: Use image node_id 2 for calling a global function with example usage: test_dependency() without return types