code: def test_convert_time_units():
      units = {
          "years": 31540000,
          "months": 2628000,
          "days": 86400,
          "hours": 3600,
          "minutes": 60,
          "seconds": 1,
          "milliseconds": 0.001,
          "nanoseconds": 0.000000001,
      }
      for each in units:
          assert convert_time_units(units[each] * 2, each) == 2
          assert np.isclose(
              convert_time_units(float(units[each] * 2), each), 2
          )
  
      error_text = "Invalid unit given, make sure it is plural"
      with pytest.raises(ValueError, match=error_text):
          convert_time_units("jnkwjgn", 10)
  
file_path: featuretools/featuretools/tests/utils_tests/test_time_utils.py
imports: from datetime import datetime, timedelta
  from itertools import chain
  import numpy
  import pandas
  import pytest
  from featuretools.utils import convert_time_units, make_temporal_cutoffs
  from featuretools.utils.time_utils import calculate_trend, convert_datetime_to_floats, convert_timedelta_to_floats
label_desc: Use image node_id 2 for calling a global function with example usage: test_convert_time_units() without return types