class_docstr: Align a renderable by adding spaces if necessary.
  
  Args:
      renderable (RenderableType): A console renderable.
      align (AlignMethod): One of "left", "center", or "right""
      style (StyleType, optional): An optional style to apply to the background.
      vertical (Optional[VerticalAlignMethod], optional): Optional vertical align, one of "top", "middle", or "bottom". Defaults to None.
      pad (bool, optional): Pad the right with spaces. Defaults to True.
      width (int, optional): Restrict contents to given width, or None to use default width. Defaults to None.
      height (int, optional): Set height of align renderable, or None to fit to contents. Defaults to None.
  
  Raises:
      ValueError: if ``align`` is not one of the expected values.
code: def __rich_measure__(
      self, console: "Console", options: "ConsoleOptions"
  ) -> Measurement:
      measurement = Measurement.get(console, options, self.renderable)
      return measurement
  
imports: import sys
  from itertools import chain
  from typing import TYPE_CHECKING, Iterable, Optional
  from .constrain import Constrain
  from .jupyter import JupyterMixin
  from .measure import Measurement
  from .segment import Segment
  from .style import StyleType
label_desc: Use image node_id 7 for calling the Align obj's underlying member method code with example usage: obj.__rich_measure__(console, options) and returns: measurement