code: def to_device(
      x: Union[(None, mx.ndarray.NDArray)],
      device: str,
      /,
      *,
      stream: Optional[int] = None,
      out: Optional[Union[(None, mx.ndarray.NDArray)]] = None,
  ) -> Union[(None, mx.ndarray.NDArray)]:
      return x.as_in_context(as_native_dev(device))
  
file_path: ivy/ivy/functional/backends/mxnet/device.py
imports: import mxnet
  from typing import Union, Optional
  import ivy
  from ivy.functional.ivy.device import Profiler
  from ivy.utils.exceptions import IvyNotImplementedException
label_desc: Use image node_id 2 for calling a global function with example usage: to_device() and returns: x