code: def ints_to_td64ns(data, unit="ns"):
      """
      Convert an ndarray with integer-dtype to timedelta64[ns] dtype, treating
      the integers as multiples of the given timedelta unit.
  
      Parameters
      ----------
      data : numpy.ndarray with integer-dtype
      unit : str, default "ns"
          The timedelta unit to treat integers as multiples of.
  
      Returns
      -------
      numpy.ndarray : timedelta64[ns] array converted from data
      bool : whether a copy was made
      """
      copy_made = False
      unit = unit if unit is not None else "ns"
  
      if data.dtype != np.int64:
          # converting to int64 makes a copy, so we can avoid
          # re-copying later
          data = data.astype(np.int64)
          copy_made = True
  
      if unit != "ns":
          dtype_str = "timedelta64[{unit}]".format(unit=unit)
          data = data.view(dtype_str)
  
          # TODO: watch out for overflows when converting from lower-resolution
          data = data.astype("timedelta64[ns]")
          # the astype conversion makes a copy, so we can avoid re-copying later
          copy_made = True
  
      else:
          data = data.view("timedelta64[ns]")
  
      return data, copy_made
  
imports: from __future__ import division
  from datetime import timedelta
  import textwrap
  import warnings
  import numpy
  from pandas._libs import lib, tslibs
  from pandas._libs.tslibs import NaT, Timedelta, Timestamp, iNaT
  from pandas._libs.tslibs.fields import get_timedelta_field
  from pandas._libs.tslibs.timedeltas import array_to_timedelta64, parse_timedelta_unit, precision_from_unit
  import pandas.compat
  from pandas.util._decorators import Appender
  from pandas.core.dtypes.common import _NS_DTYPE, _TD_DTYPE, ensure_int64, is_datetime64_dtype, is_dtype_equal, is_float_dtype, is_integer_dtype, is_list_like, is_object_dtype, is_scalar, is_string_dtype, is_timedelta64_dtype, is_timedelta64_ns_dtype, pandas_dtype
  from pandas.core.dtypes.dtypes import DatetimeTZDtype
  from pandas.core.dtypes.generic import ABCDataFrame, ABCIndexClass, ABCSeries, ABCTimedeltaIndex
  from pandas.core.dtypes.missing import isna
  from pandas.core import ops
  from pandas.core.algorithms import checked_add_with_arr
  import pandas.core.common
  from pandas.tseries.frequencies import to_offset
  from pandas.tseries.offsets import Tick
  from .None import datetimelike
label_desc: Use image node_id 5 for calling a global function with example usage: ints_to_td64ns(data, unit) and returns: data,  copy_made