code: def move_to_ctx(arr, ctx):
      """Move a nested structure of array to the given context
  
      Parameters
      ----------
      arr
          The input array
      ctx
          The MXNet context
  
      Returns
      -------
      new_arr
          The array that has been moved to context
      """
      if isinstance(arr, tuple):
          return tuple(move_to_ctx(ele, ctx) for ele in arr)
      elif isinstance(arr, list):
          return [move_to_ctx(ele, ctx) for ele in arr]
      else:
          return None if arr is None else arr.as_in_ctx(ctx)
  
imports: import warnings
  import numpy
  import mxnet
  from collections import defaultdict
  from mxnet.gluon import Parameter
  from mxnet.util import use_np
  from typing import Iterable, Optional, Tuple
  from collections import OrderedDict
  from mxnet.gluon.utils import shape_is_known
label_desc: Use image node_id 3 for calling a global function with example usage: move_to_ctx(arr, ctx) and returns: tuple, unknown, unknown