code: def and_filter_from_opts(opts):
      '''build an AND filter from the provided opts dict as passed to a command
      from the filter_options decorator. Assumes all dict values are lists of
      filter dict constructs.'''
      return filters.and_filter(*list(chain.from_iterable([
          o for o in opts.values() if o]
      ))f and_filter_from_opts(opts):
      '''build an AND filter from the provided opts dict as passed to a command
      from the filter_options decorator. Assumes all dict values are lists of
      filter dict constructs.'''
      return filters.and_filter(*list(chain.from_iterable([
          o for o in opts.values() if o]
      )))
docs: build an AND filter from the provided opts dict as passed to a command
      from the filter_options decorator. Assumes all dict values are lists of
      filter dict constructs.