code: def convert_time_units(secs, unit):
      """
      Converts a time specified in seconds to a time in the given units
  
      Args:
          secs (integer): number of seconds. This function will convert the units of this number.
          unit(str): units to be converted to.
              acceptable values: years, months, days, hours, minutes, seconds, milliseconds, nanoseconds
      """
      unit_divs = {
          "years": 31540000,
          "months": 2628000,
          "days": 86400,
          "hours": 3600,
          "minutes": 60,
          "seconds": 1,
          "milliseconds": 0.001,
          "nanoseconds": 0.000000001,
      }
      if unit not in unit_divs:
          raise ValueError("Invalid unit given, make sure it is plural")
  
      return secs / (unit_divs[unit])
  
file_path: featuretools/featuretools/utils/time_utils.py
imports: from datetime import datetime, timedelta
  import numpy
  import pandas
label_desc: Use image node_id 2 for calling a global function with example usage: convert_time_units(secs, unit) and returns: unknown