code: def _round_ifneeded(arr, dtype):
      """
      Rounds arr inplace if destination dtype is integer.
  
      Parameters
      ----------
      arr : ndarray
          Input array.
      dtype : dtype
          The dtype of the destination array.
  
      """
      if np.issubdtype(dtype, np.integer):
          arr.round(out=arr)
  
imports: from __future__ import division, absolute_import, print_function
  import numpy
  from numpy.core.overrides import array_function_dispatch
label_desc: Use image node_id 2 for calling a global function with example usage: _round_ifneeded(arr, dtype) without return types