code: def parse_type(attrtype):
      """Given an arff attribute value (meta data), returns its type.
  
      Expect the value to be a name."""
      uattribute = attrtype.lower().strip()
      if uattribute[0] == "{":
          return "nominal"
      elif uattribute[: len("real")] == "real":
          return "numeric"
      elif uattribute[: len("integer")] == "integer":
          return "numeric"
      elif uattribute[: len("numeric")] == "numeric":
          return "numeric"
      elif uattribute[: len("string")] == "string":
          return "string"
      elif uattribute[: len("relational")] == "relational":
          return "relational"
      elif uattribute[: len("date")] == "date":
          return "date"
      else:
          raise ParseArffError("unknown attribute %s" % uattribute)
  
imports: from __future__ import division, print_function, absolute_import
  import re
  import itertools
  import datetime
  from functools import partial
  import numpy
  from scipy._lib.six import next
label_desc: Use image node_id 1 for calling a global function with example usage: parse_type(attrtype) and returns: str, str, str, str, str, str, str