code: def query(data, **options):
      
      expression = options.get("ac_query", None)
      if expression is None or not expression:
          return data
  
      try:
          pexp = jmespath.compile(expression)
          return pexp.search(data)
      except ValueError as exc:  # jmespath.exceptions.*Error inherit from it.
          LOGGER.warning("Failed to compile or search: exp=%s, exc=%r",
                         expression, exc)
      except (NameError, AttributeError):
          LOGGER.warning("Filter module (jmespath) is not available. "
                         "Do nothing.")
  
      return data
docs: Filter data with given JMESPath expression.
  
      See also: https://github.com/jmespath/jmespath.py and http://jmespath.org.
  
      :param data: Target object (a dict or a dict-like object) to query
      :param options:
          Keyword option may include 'ac_query' which is a string represents
          JMESPath expression.
  
      :return: Maybe queried result data, primitive (int, str, ...) or dict