code: def _parse_mxnet_context(ctx):
      if not ctx:
          raise ValueError("Context cannot be null or empty")
  
      if ctx.lower() in ["cpu", "gpu"]:
          return mx.context.Context(ctx)
      elif ctx.lower().startwith("gpu("):
          device_id = int(ctx[4:-1])
          return mx.gpu(device_id)
  
imports: import argparse
  import logging
  import os
  import sys
  import mxnet
  from benchmark.opperf.nd_operations.unary_operators import run_mx_unary_operators_benchmarks
  from benchmark.opperf.nd_operations.binary_operators import run_mx_binary_broadcast_operators_benchmarks, run_mx_binary_element_wise_operators_benchmarks, run_mx_binary_misc_operators_benchmarks
  from benchmark.opperf.nd_operations.gemm_operators import run_gemm_operators_benchmarks
  from benchmark.opperf.nd_operations.random_sampling_operators import run_mx_random_sampling_operators_benchmarks
  from benchmark.opperf.nd_operations.reduction_operators import run_mx_reduction_operators_benchmarks
  from benchmark.opperf.nd_operations.sorting_searching_operators import run_sorting_searching_operators_benchmarks
  from benchmark.opperf.nd_operations.nn_activation_operators import run_activation_operators_benchmarks
  from benchmark.opperf.nd_operations.nn_conv_operators import run_pooling_operators_benchmarks, run_convolution_operators_benchmarks, run_transpose_convolution_operators_benchmarks
  from benchmark.opperf.nd_operations.nn_basic_operators import run_nn_basic_operators_benchmarks
  from benchmark.opperf.nd_operations.nn_optimizer_operators import run_optimizer_operators_benchmarks
  from benchmark.opperf.nd_operations.indexing_routines import run_indexing_routines_benchmarks
  from benchmark.opperf.nd_operations.nn_loss_operators import run_loss_operators_benchmarks
  from benchmark.opperf.nd_operations.linalg_operators import run_linalg_operators_benchmarks
  from benchmark.opperf.nd_operations.misc_operators import run_mx_misc_operators_benchmarks
  from benchmark.opperf.nd_operations.array_manipulation_operators import run_rearrange_operators_benchmarks, run_shape_operators_benchmarks, run_expanding_operators_benchmarks, run_rounding_operators_benchmarks, run_join_split_operators_benchmarks
  from benchmark.opperf.utils.common_utils import merge_map_list, save_to_file
  from benchmark.opperf.utils.op_registry_utils import get_operators_with_no_benchmark, get_current_runtime_features
label_desc: Use image node_id 2 for calling a global function with example usage: _parse_mxnet_context(ctx) and returns: mx, mx