code: def validate(cls, mapper_spec):
      
      if mapper_spec.input_reader_class() != cls:
        raise errors.BadReaderParamsError("Input reader class mismatch")
      params = mapper_spec.params
      if cls.FILES_PARAM not in params:
        raise errors.BadReaderParamsError("Missing files parameter.")
docs: Validate reader parameters in mapper_spec.