code: def add_module_to_learner_or_learner_group(
      config: AlgorithmConfig,
      env: "gym.Env",
      module_id: str,
      learner_group_or_learner: Union[LearnerGroup, "Learner"],
  ):
      learner_group_or_learner.add_module(
          module_id=module_id,
          module_spec=config.get_marl_module_spec(env=env).module_specs[
              DEFAULT_POLICY_ID
          ],
      )
  
file_path: ray/python/ray/rllib/core/testing/utils.py
imports: from typing import Union
  import gymnasium
  from ray.rllib.algorithms.algorithm_config import AlgorithmConfig
  from ray.rllib.core.learner.learner import Learner
  from ray.rllib.core.learner.learner_group import LearnerGroup
  from ray.rllib.policy.sample_batch import DEFAULT_POLICY_ID
  from ray.rllib.utils.annotations import DeveloperAPI
label_desc: Use image node_id 1 for calling a global function with example usage: add_module_to_learner_or_learner_group(config, env, module_id, learner_group_or_learner) without return types