parameters: (axis)
return_statement: return reduce_all, axis
docstring: Internal function for max, min, amax and amin. 
      It computes the attribute reduce_all value based on axis.
docstring_summary: Internal function for max, min, amax and amin. 
      It computes the attribute reduce_all value based on axis.
docstring_tokens: Internal function for max min amax and amin . It computes the attribute reduce_all value based on axis .
function: def _get_reduce_all_value(axis):
      """
      Internal function for max, min, amax and amin. 
      It computes the attribute reduce_all value based on axis.
      """
      if axis is not None and not isinstance(axis, list):
          if isinstance(axis, tuple):
              axis = list(axis)
          elif isinstance(axis, int):
              axis= [axis]
          else:
              raise TypeError(
                  "The type of axis must be int, list or tuple, but received {}".format(type(axis)))
  
      reduce_all = True if axis == None or axis == [] else False
      axis = axis if axis != None and axis != [] else [0]
      return reduce_all, axis
function_tokens: def _get_reduce_all_value ( axis ) : if axis is not None and not isinstance ( axis , list ) : if isinstance ( axis , tuple ) : axis = list ( axis ) elif isinstance ( axis , int ) : axis = [ axis ] else : raise TypeError ( "The type of axis must be int, list or tuple, but received {}" . format ( type ( axis ) ) ) reduce_all = True if axis == None or axis == [ ] else False axis = axis if axis != None and axis != [ ] else [ 0 ] return reduce_all , axis