parameters: (value)
docstring: Converts the given value to a Dimension.
  
    A Dimension input will be returned unmodified.
    An input of `None` will be converted to an unknown Dimension.
    An integer input will be converted to a Dimension with that value.
  
    Args:
      value: The value to be converted.
  
    Returns:
      A Dimension corresponding to the given value.
docstring_summary: Converts the given value to a Dimension.
docstring_tokens: Converts the given value to a Dimension .
function: def as_dimension(value):
    """Converts the given value to a Dimension.
  
    A Dimension input will be returned unmodified.
    An input of `None` will be converted to an unknown Dimension.
    An integer input will be converted to a Dimension with that value.
  
    Args:
      value: The value to be converted.
  
    Returns:
      A Dimension corresponding to the given value.
    """
    if isinstance(value, Dimension):
      return value
    else:
      return Dimension(value)
function_tokens: def as_dimension ( value ) : if isinstance ( value , Dimension ) : return value else : return Dimension ( value )