code: def contains(
      target: Any, identifier: str, fn: Callable[..., Any]
  ) -> bool:
      """Return True if the given target/ident/fn is set up to listen."""
  
      return _event_key(target, identifier, fn).contains()
  
file_path: sqlalchemy/lib/sqlalchemy/event/api.py
imports: from __future__ import annotations
  from typing import Any
  from typing import Callable
  from .base import _registrars
  from .registry import _ET
  from .registry import _EventKey
  from .registry import _ListenerFnType
  from ..None import exc
  from ..None import util
label_desc: Use image node_id 5 for calling a global function with example usage: contains(target, identifier, fn) and returns: _event_key