code: def print_all_ivy_arrays_on_dev(
      *,
      device: Optional[Union[ivy.Device, ivy.NativeDevice]] = None,
      attr_only: bool = True,
  ) -> None:
      """Print the shape and dtype for all ivy arrays which are currently alive
      on the specified device.
  
      Parameters
      ----------
      device
          The device on which to print the arrays
  
      attr_only
          Whether or not to only print the `shape` and `dtype` attributes of the array
  
      Examples
      --------
      >>> x = ivy.array([[1,0,2], [3,2,1]])
      >>> y = ivy.dev(x)
      >>> ivy.print_all_ivy_arrays_on_dev(y)
      ((3,), 'int32')
      ((3,), 'int32')
  
  
      >>> x = ivy.array([[1,0,2], [3,2,1]])
      >>> y = ivy.dev(x)
      >>> ivy.print_all_ivy_arrays_on_dev(y, attr_only = False)
      [1,0,2]
      [3,2,1]
      """
      arrs = ivy.get_all_ivy_arrays_on_dev(device).values()
      if attr_only:
          [print((arr.shape, arr.dtype)) for arr in arrs]
      else:
          [print(arr) for arr in arrs]
  
imports: import os
  import gc
  import abc
  import math
  import psutil
  import warnings
  import types
  from typing import Type, Optional, Tuple
  from typing import Union, Callable, Iterable, Any
  import ivy
  from ivy.func_wrapper import handle_out_argument, to_native_arrays_and_back, inputs_to_native_arrays, handle_nestable, handle_array_like_without_promotion, handle_backend_invalid
  from ivy.utils.exceptions import handle_exceptions
label_desc: Use image node_id 6 for calling a global function with example usage: print_all_ivy_arrays_on_dev() without return types