code: def _round_if_needed(arr, dtype):
      """Rounds arr inplace if the destination dtype is an integer."""
      if cupy.issubdtype(dtype, cupy.integer):
          arr.round(out=arr)
  
file_path: cupy/cupy/_padding/pad.py
imports: import numbers
  import numpy
  import cupy
label_desc: Use image node_id 1 for calling a global function with example usage: _round_if_needed(arr, dtype) without return types