code: def find_by_maybe_file(obj, prs):
      
      if not isinstance(obj, IOInfo):
          obj = anyconfig.ioinfo.make(obj)
  
      return find_by_fileext(obj.extension, prs)
docs: :param obj:
          a file path, file or file-like object, pathlib.Path object or an
          'anyconfig.globals.IOInfo' (namedtuple) object
      :param cps_by_ext: A list of processor classes
      :return: A list of processor classes to process given (maybe) file
      :raises: UnknownFileTypeError