def _get_none_or_value(value):
 if (value is None):
  return None
 elif (not value):
  return value
 elif isinstance(value, six.string_types):
  if (value.lower() == 'none'):
   return None
  return value
 else:
  return None

def _get_none_or_value ( value ) : if ( value is None ) : return None elif ( not value ) : return value elif isinstance ( value , six . string_types ) : if ( value . lower ( ) == 'none' ) : return None return value else : return None
private method checks to see if the value of a primitive or built-in container such as a list .