code: def _prepare_requirements(configs, requires_filters):
          
          if not requires_filters or not isinstance(requires_filters, dict):
              # No explicit filter configured
              return configs
  
          # We need to change a part of the requirements
          new_requirements = {}
          for field, config in configs.items():
              # Extract values from tuple
              requirement, key, allow_none = config
  
              try:
                  explicit_filter = requires_filters[field]
  
                  # Store an updated copy of the requirement
                  requirement_copy = requirement.copy()
                  requirement_copy.set_filter(explicit_filter)
                  new_requirements[field] = (requirement_copy, key, allow_none)
  
              except (KeyError, TypeError, ValueError):
                  # No information for this one, or invalid filter:
                  # keep the factory requirement
                  new_requirements[field] = config
  
          return new_requirements
docs: Overrides the filters specified in the decorator with the given ones
  
          :param configs: Field → (Requirement, key, allow_none) dictionary
          :param requires_filters: Content of the 'requires.filter' component
                                   property (field → string)
          :return: The new configuration dictionary