code: def _annotation_dict_any_filter(edge_data: EdgeData, query: Mapping[str, Iterable[str]]) -> bool:
      
      annotations = edge_data.get(ANNOTATIONS)
  
      if annotations is None:
          return False
  
      return any(
          key in annotations and value in annotations[key]
          for key, values in query.items()
          for value in values
      )
docs: Match edges with the given dictionary as a sub-dictionary.
  
      :param query: The annotation query dict to match