class_docstr: Transforms Assert nodes to Call so they can be handled as functions.
code: def visit_Assert(self, node):
      self.generic_visit(node)
  
      # Note: The lone tf.Assert call will be wrapped with control_dependencies
      # by side_effect_guards.
      template = """
        ag__.assert_stmt(test, lambda: msg)
      """
  
      if node.msg is None:
          return templates.replace(
              template,
              test=node.test,
              msg=gast.Constant("Assertion error", kind=None),
          )
      elif isinstance(node.msg, gast.Constant):
          return templates.replace(
              template, test=node.test, msg=node.msg
          )
      else:
          raise NotImplementedError(
              "can only convert string messages for now."
          )
  
imports: import gast
  from tensorflow.python.autograph.core import converter
  from tensorflow.python.autograph.pyct import templates
label_desc: Use image node_id 1 for calling the AssertTransformer obj's underlying member method code with example usage: obj.visit_Assert(node) and returns: templates, templates