code: def flatten(inputs: tf.Tensor, name: str = "flatten") -> tf.Tensor:
      """A shortcut for applying :class:`Flatten` to the ``inputs``."""
      return Flatten(name=name)(inputs)
  
file_path: sonnet/sonnet/src/reshape.py
imports: from typing import Optional, Sequence
  import numpy
  from sonnet.src import base
  from sonnet.src import once
  from sonnet.src import types
  import tensorflow
label_desc: Use image node_id 2 for calling a global function with example usage: flatten(inputs, name) and returns: Flatten