parameters: (self, value)
docstring: Creates a new Dimension with the given value.
docstring_summary: Creates a new Dimension with the given value.
docstring_tokens: Creates a new Dimension with the given value .
function: def __init__(self, value):
      """Creates a new Dimension with the given value."""
      if value is None:
        self._value = None
      else:
        self._value = int(value)
        if (not isinstance(value, compat.bytes_or_text_types)
            and self._value != value):
          raise ValueError("Ambiguous dimension: %s" % value)
        if self._value < 0:
          raise ValueError("Dimension %d must be >= 0" % self._value)
function_tokens: def __init__ ( self , value ) : if value is None : self . _value = None else : self . _value = int ( value ) if ( not isinstance ( value , compat . bytes_or_text_types ) and self . _value != value ) : raise ValueError ( "Ambiguous dimension: %s" % value ) if self . _value < 0 : raise ValueError ( "Dimension %d must be >= 0" % self . _value )