code: def train_lstm_gluon_save_parameters_api():
      # If this code is being run on version >= 1.2.1 only then execute it,
      # since it uses save_parameters and load_parameters API
      if compare_versions(str(mxnet_version), "1.2.1") < 0:
          logging.warn(
              f"Found MXNet version {str(mxnet_version)} and exiting because this version does not contain save_parameters"
              " and load_parameters functions"
          )
          return
  
      model_name = "lstm_gluon_save_parameters_api"
      logging.info(f"Saving files for model {model_name}")
      create_model_folder(model_name)
      net = SimpleLSTMModel()
      weights = mx.initializer.Xavier(magnitude=2.57)
      net.initialize(weights, ctx=[mx.cpu(0)])
  
      test_data = mx.np.array(np.random.uniform(-1, 1, size=(10, 30)))
      output = net(test_data)
      # print output
      mx.npx.savez(
          os.path.join(
              get_model_path(model_name), "".join([model_name, "-data"])
          ),
          **{"data": test_data},
      )
      save_inference_results(output, model_name)
      net.save_parameters(
          os.path.join(
              get_model_path(model_name),
              "".join([model_name, "-params"]),
          )
      )
  
imports: from .common import *
label_desc: Use image node_id 3 for calling a global function with example usage: train_lstm_gluon_save_parameters_api() without return types