code: def init_model_and_optimizer():
      model = torch.nn.Linear(1, 1, bias=False).cuda()
      optimizer = torch.optim.SGD(model.parameters(), 1.0)
      return model, optimizer
  
file_path: apex/tests/L0/run_deprecated/test_deprecated_warning.py
imports: import unittest
  import torch
  import apex
  from apex.transformer.testing.distributed_test_base import NcclDistributedTestBase
label_desc: Use image node_id 1 for calling a global function with example usage: init_model_and_optimizer() and returns: model,  optimizer