code: def bin_cutoff_times(cutoff_time, bin_size):
      binned_cutoff_time = cutoff_time.ww.copy()
      if isinstance(bin_size, int):
          binned_cutoff_time["time"] = binned_cutoff_time["time"].apply(
              lambda x: x / bin_size * bin_size,
          )
      else:
          bin_size = _check_timedelta(bin_size)
          binned_cutoff_time["time"] = datetime_round(
              binned_cutoff_time["time"],
              bin_size,
          )
      return binned_cutoff_time
  
imports: import logging
  import os
  import typing
  import warnings
  from datetime import datetime
  from functools import wraps
  import numpy
  import pandas
  import psutil
  from woodwork.logical_types import Datetime, Double
  from featuretools.entityset.relationship import RelationshipPath
  from featuretools.feature_base import AggregationFeature, DirectFeature
  from featuretools.utils import Trie
  from featuretools.utils.gen_utils import Library, import_or_none, is_instance
  from featuretools.utils.wrangle import _check_time_type, _check_timedelta
label_desc: Use image node_id 1 for calling a global function with example usage: bin_cutoff_times(cutoff_time, bin_size) and returns: binned_cutoff_time