class_docstr: This renders the template fields of object.
  
  :meta private:
class_docstr_tok: ["This","renders","the","template","fields","of","object",".",":","meta","private",":"]
code: def _render(self, template, context, dag: DAG | None = None) -> Any:
      if dag and dag.render_template_as_native_obj:
          return render_template_as_native(template, context)
      return render_template_to_string(template, context)
  
file_path: airflow/airflow/template/templater.py
imports: from __future__ import annotations
  from dataclasses import dataclass
  from typing import TYPE_CHECKING, Any, Collection, Iterable, Sequence
  from airflow.utils.helpers import render_template_as_native, render_template_to_string
  from airflow.utils.log.logging_mixin import LoggingMixin
  from airflow.utils.mixins import ResolveMixin
  from airflow.utils.session import NEW_SESSION, provide_session
label_desc: Use image node_id 5 for calling the Templater obj's underlying member method code with example usage: obj._render(template, context, dag) and returns: render_template_to_string, render_template_as_native