code: def test_escaped(value: t.Any) -> bool:
      """Check if the value is escaped."""
      return hasattr(value, "__html__")
  
imports: import operator
  import typing
  from collections import abc
  from numbers import Number
  from .runtime import Undefined
  from .utils import pass_environment
label_desc: Use image node_id 22 for calling a global function with example usage: test_escaped(value) and returns: hasattr