code: def can_fetch_pool(self, request: Request):
          '''Return whether the request can be fetched based on the pool.'''
          url_info = request.url_info
          user_agent = request.fields.get('User-agent', '')
  
          if self._robots_txt_pool.has_parser(url_info):
              return self._robots_txt_pool.can_fetch(url_info, user_agent)
          else:
              raise NotInPoolError(f can_fetch_pool(self, request: Request):
          '''Return whether the request can be fetched based on the pool.'''
          url_info = request.url_info
          user_agent = request.fields.get('User-agent', '')
  
          if self._robots_txt_pool.has_parser(url_info):
              return self._robots_txt_pool.can_fetch(url_info, user_agent)
          else:
              raise NotInPoolError()
docs: Return whether the request can be fetched based on the pool.