code: def model_config(
      task_name: str,
      model_name: str,
      dtype: str,
      tensor_parallel: int,
      meta_tensor: bool,
      load_with_sys_mem: bool,
      replica_num: int,
      enable_deepspeed: bool,
      enable_zero: bool,
      ds_config: dict,
      replace_with_kernel_inject: bool,
  ):
      config = SimpleNamespace(
          task=task_name,
          model=model_name,
          dtype=dtype,
          tensor_parallel=tensor_parallel,
          model_path=os.getenv("TRANSFORMERS_CACHE", ""),
          meta_tensor=meta_tensor,
          replica_num=replica_num,
          enable_deepspeed=enable_deepspeed,
          enable_zero=enable_zero,
          ds_config=ds_config,
          replace_with_kernel_inject=replace_with_kernel_inject,
      )
      return config.__dict__
  
imports: import pytest
  import os
  import mii.legacy
  from types import SimpleNamespace
label_desc: Use image node_id 17 for calling a global function with example usage: model_config(task_name, model_name, dtype, tensor_parallel, meta_tensor, load_with_sys_mem, replica_num, enable_deepspeed, enable_zero, ds_config, replace_with_kernel_inject) and returns: config