code: def test_format(self):
      node = ast.FunctionDef(
          name="f",
          args=ast.arguments(
              args=[ast.Name(id="a", ctx=ast.Param())],
              vararg=None,
              kwarg=None,
              defaults=[],
          ),
          body=[
              ast.Return(
                  ast.BinOp(
                      op=ast.Add(),
                      left=ast.Name(id="a", ctx=ast.Load()),
                      right=ast.Num(1),
                  )
              )
          ],
          decorator_list=[],
          returns=None,
      )
      # Just checking for functionality, the color control characters make it
      # difficult to inspect the result.
      self.assertIsNotNone(pretty_printer.fmt(node))
  
file_path: tensorflow-upstream/tensorflow/python/autograph/pyct/pretty_printer_test.py
imports: import ast
  import textwrap
  from tensorflow.python.autograph.pyct import pretty_printer
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the PrettyPrinterTest obj's underlying member method code with example usage: obj.test_format() without return types