code: def convert_context(params, ctx):
      """
      :param params: dict of str to NDArray
      :param ctx: the context to convert to
      :return: dict of str of NDArray with context ctx
      """
      new_params = dict()
      for k, v in params.items():
          new_params[k] = v.as_in_context(ctx)
      return new_params
  
label_desc: Use image node_id 2 for calling a global function with example usage: convert_context(params, ctx) and returns: new_params