code: def parse_attribute(ty, value: str):
      if ty == "numeric":
          return int(value)
  
      if ty == "string":
          return value
  
      if ty == "date":
          return datetime.strptime(value, "%Y-%m-%d %H-%M-%S")
  
      raise AttributeError(ty)
  
imports: from datetime import datetime
  from distutils.util import strtobool
  from types import SimpleNamespace
  from typing import Dict
  import numpy
  from toolz import compose_left
  from gluonts import json
  from gluonts.exceptions import GluonTSDataError
label_desc: Use image node_id 1 for calling a global function with example usage: parse_attribute(ty, value) and returns: int, value, datetime