code: def to_device(
      x: np.ndarray,
      device: str,
      /,
      *,
      stream: Optional[Union[int, Any]] = None,
      out: Optional[np.ndarray] = None,
  ) -> np.ndarray:
      if device is not None:
          device = as_native_dev(device)
      return x
  
imports: import os
  import time
  import logging
  import numpy
  from typing import Union, Optional, Any
  import ivy
  from ivy.functional.ivy.device import Profiler
label_desc: Use image node_id 8 for calling a global function with example usage: to_device() and returns: x