code: def _get_type_of_macro(macros, objs):
          r
          for macro in macros:
              if re.match(r'ARG\d', macro):
                  macros[macro]['type'] = 'ARGN'
                  continue
              elif re.match(r'_HOST\w', macro):
                  macros[macro]['type'] = 'CUSTOM'
                  macros[macro]['class'] = 'HOST'
                  continue
              elif re.match(r'_SERVICE\w', macro):
                  macros[macro]['type'] = 'CUSTOM'
                  macros[macro]['class'] = 'SERVICE'
                  continue
              elif re.match(r'_CONTACT\w', macro):
                  macros[macro]['type'] = 'CUSTOM'
                  macros[macro]['class'] = 'CONTACT'
                  continue
              elif len(macro.split(':')) > 1:
                  macros[macro]['type'] = 'ONDEMAND'
                  continue
              for obj in objs:
                  if macro in obj.macros:
                      macros[macro]['type'] = 'object'
                      macros[macro]['object'] = obj
                      continue