code: def pass_context(f: F) -> F:
      """Pass the :class:`~jinja2.runtime.Context` as the first argument
      to the decorated function when called while rendering a template.
  
      Can be used on functions, filters, and tests.
  
      If only ``Context.eval_context`` is needed, use
      :func:`pass_eval_context`. If only ``Context.environment`` is
      needed, use :func:`pass_environment`.
  
      .. versionadded:: 3.0.0
          Replaces ``contextfunction`` and ``contextfilter``.
      """
      f.jinja_pass_arg = _PassArg.context  # type: ignore
      return f
  
imports: import enum
  import json
  import os
  import re
  import typing
  from collections import abc
  from collections import deque
  from random import choice
  from random import randrange
  from threading import Lock
  from types import CodeType
  from urllib.parse import quote_from_bytes
  import markupsafe
label_desc: Use image node_id 1 for calling a global function with example usage: pass_context(f) and returns: f