code: def _any(
      objs: set[HasProps], query: Callable[[HasProps], bool]
  ) -> bool:
      """Whether any of a collection of objects satisfies a given query predicate
  
      Args:
          objs (set[HasProps]) :
  
          query (callable)
  
      Returns:
          True, if ``query(obj)`` is True for some object in ``objs``, else False
  
      """
      return any(query(x) for x in objs)
  
imports: from __future__ import annotations
  import logging
  import hashlib
  import json
  import os
  from dataclasses import dataclass
  from os.path import normpath
  from pathlib import Path
  from typing import TYPE_CHECKING, Callable, Iterator, Sequence, TypedDict
  from urllib.parse import urljoin
  from ..core.has_props import HasProps
  from ..core.templates import CSS_RESOURCES, JS_RESOURCES
  from ..document.document import Document
  from ..resources import Resources
  from ..settings import settings
  from ..util.compiler import bundle_models
  from .util import contains_tex_string
label_desc: Use image node_id 5 for calling a global function with example usage: _any(objs, query) and returns: any