code: def is_timedelta(x) -> bool:
      """Check if x is of timedelta type."""
      return isinstance(x, ACCEPTED_TIMEDELTA_TYPES)
  
imports: import os
  from datetime import timedelta
  from typing import Union
  import numpy
  import pandas
label_desc: Use image node_id 4 for calling a global function with example usage: is_timedelta(x) and returns: isinstance