code: def find_by_type_or_id(type_or_id, prs):
      
      def pred(pcls):
          """Predicate"""
          return pcls.cid() == type_or_id or pcls.type() == type_or_id
  
      pclss = findall_with_pred(pred, prs)
      if not pclss:
          raise UnknownProcessorTypeError(type_or_id)
  
      return pclss
docs: :param type_or_id: Type of the data to process or ID of the processor class
      :param prs: A list of :class:`anyconfig.models.processor.Processor` classes
      :return:
          A list of processor classes to process files of given data type or
          processor 'type_or_id' found by its ID
      :raises: UnknownProcessorTypeError