parameters: (kwargs)
return_statement: return order, copy
docstring: Unpack keyword arguments for reshape function.
  
      This is useful because keyword arguments after star arguments are not
      allowed in Python 2, but star keyword arguments are. This function unpacks
      'order' and 'copy' from the star keyword arguments (with defaults) and
      throws an error for any remaining.
docstring_summary: Unpack keyword arguments for reshape function.
docstring_tokens: Unpack keyword arguments for reshape function .
function: def check_reshape_kwargs(kwargs):
      """Unpack keyword arguments for reshape function.
  
      This is useful because keyword arguments after star arguments are not
      allowed in Python 2, but star keyword arguments are. This function unpacks
      'order' and 'copy' from the star keyword arguments (with defaults) and
      throws an error for any remaining.
      """
  
      order = kwargs.pop('order', 'C')
      copy = kwargs.pop('copy', False)
      if kwargs:  # Some unused kwargs remain
          raise TypeError('reshape() got unexpected keywords arguments: {}'
                          .format(', '.join(kwargs.keys())))
      return order, copy
function_tokens: def check_reshape_kwargs ( kwargs ) : order = kwargs . pop ( 'order' , 'C' ) copy = kwargs . pop ( 'copy' , False ) if kwargs : # Some unused kwargs remain raise TypeError ( 'reshape() got unexpected keywords arguments: {}' . format ( ', ' . join ( kwargs . keys ( ) ) ) ) return order , copy