code: def get_train_context(num_gpus):
      if num_gpus:
          return [mx.gpu(i) for i in range(num_gpus)]
      else:
          return mx.cpu()
  
file_path: sagemaker-python-sdk/tests/data/mxnet_mnist/mnist_neo.py
imports: from __future__ import absolute_import
  import argparse
  import gzip
  import json
  import logging
  import os
  import struct
  import mxnet
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: get_train_context(num_gpus) and returns: unknown, mx