code: def timestamp_to_datetime(response):
      "Converts a unix timestamp to a Python datetime object"
      if not response:
          return None
      try:
          response = int(response)
      except ValueError:
          return None
      return datetime.datetime.fromtimestamp(response)
  
imports: import datetime
  from redis.utils import str_if_bytes
label_desc: Use image node_id 1 for calling a global function with example usage: timestamp_to_datetime(response) and returns: datetime, None, None