parameters: (layer_instance, include_sublayer=True)
return_statement: return params
docstring: Returns parameters of decorated layers. If set `include_sublayer` True,
      the parameters created in sub layers will be added.
docstring_summary: Returns parameters of decorated layers. If set `include_sublayer` True,
      the parameters created in sub layers will be added.
docstring_tokens: Returns parameters of decorated layers . If set include_sublayer True the parameters created in sub layers will be added .
function: def get_parameters(layer_instance, include_sublayer=True):
      """
      Returns parameters of decorated layers. If set `include_sublayer` True,
      the parameters created in sub layers will be added.
      """
      params = collections.OrderedDict()
      if layer_instance is not None:
          if isinstance(layer_instance, layers.Layer):
              if include_sublayer:
                  params = layer_instance.parameters()
                  names = [p.name for p in params]
                  params = collections.OrderedDict(zip(names, params))
              else:
                  params = layer_instance._parameters
          else:
              raise TypeError(
                  "Type of `layer_instance` should be nn.Layer, but received {}".
                  format(type_name(layer_instance)))
  
      return params
function_tokens: def get_parameters ( layer_instance , include_sublayer = True ) : params = collections . OrderedDict ( ) if layer_instance is not None : if isinstance ( layer_instance , layers . Layer ) : if include_sublayer : params = layer_instance . parameters ( ) names = [ p . name for p in params ] params = collections . OrderedDict ( zip ( names , params ) ) else : params = layer_instance . _parameters else : raise TypeError ( "Type of `layer_instance` should be nn.Layer, but received {}" . format ( type_name ( layer_instance ) ) ) return params