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