code: def get_model_optimizer():
      torch.manual_seed(0)
      model = Model()
      optimizer = Adam(
          list(model.linear.parameters()), list(model.emb.parameters())
      )
      return model, optimizer
  
file_path: DeepSpeed/tests/unit/runtime/sparse_tensor/test_averaging_sparse_gradients.py
imports: import torch
  import deepspeed
  from unit.common import DistributedTest
  from unit.util import skip_on_arch
label_desc: Use image node_id 1 for calling a global function with example usage: get_model_optimizer() and returns: model,  optimizer