code: def test_private_access(env):
      with pytest.raises(jinja2.exceptions.SecurityError):
          env.from_string(r"{{ func.__code__ }}").render(
              func=test_private_access
          )
  
file_path: airflow/tests/core/test_templates.py
imports: from __future__ import annotations
  import jinja2
  import jinja2.exceptions
  import pendulum
  import pytest
  import airflow.templates
label_desc: Use image node_id 3 for calling a global function with example usage: test_private_access(env) without return types