code: def parser(cls):
      """Class decorator to register parsers"""
      # Currently supported parsers are json, csv, kv, and syslog
      parser_type = cls.type()
      if not parser_type:
          raise NotImplementedError(
              "{}: Parser does not define a class property for '_type'".format(
                  cls.__name__
              )
          )
  
      PARSERS[parser_type] = cls
      return cls
  
imports: from abc import ABCMeta, abstractmethod
  from copy import deepcopy
  import csv
  from fnmatch import fnmatch
  import json
  import logging
  import re
  import io
  import jmespath
  from streamalert.shared.logger import get_logger
label_desc: Use image node_id 1 for calling a global function with example usage: parser(cls) and returns: cls