class_docstr: Converts conditional expressions to functional form.
code: def visit_IfExp(self, node):
      template = """
          ag__.if_exp(
              test,
              lambda: true_expr,
              lambda: false_expr,
              expr_repr)
      """
      expr_repr = parser.unparse(
          node.test, include_encoding_marker=False
      ).strip()
      return templates.replace_as_expression(
          template,
          test=node.test,
          true_expr=node.body,
          false_expr=node.orelse,
          expr_repr=gast.Constant(expr_repr, kind=None),
      )
  
file_path: DALI/dali/python/nvidia/dali/_autograph/converters/conditional_expressions.py
imports: import gast
  from nvidia.dali._autograph.core import converter
  from nvidia.dali._autograph.pyct import parser
  from nvidia.dali._autograph.pyct import templates
label_desc: Use image node_id 1 for calling the ConditionalExpressionTransformer obj's underlying member method code with example usage: obj.visit_IfExp(node) and returns: templates