docstr: Convert ``alignment_dict`` to an openpyxl v2 Alignment object.
  
  Parameters
  ----------
  alignment_dict : dict
      A dict with zero or more of the following keys (or their synonyms).
          'horizontal'
          'vertical'
          'text_rotation'
          'wrap_text'
          'shrink_to_fit'
          'indent'
  Returns
  -------
  alignment : openpyxl.styles.Alignment
docstr_tok: ["Convert","``","alignment_dict","``","to","an","openpyxl","v2","Alignment","object",".","Parameters","--","--","--","--","--","alignment_dict",":","dict","A","dict","with","zero","or","more","of","the","following","keys","(","or","their","synonyms",")",".","'horizontal'","'vertical'","'text_rotation'","'wrap_text'","'shrink_to_fit'","'indent'","Returns","--","--","--","-","alignment",":","openpyxl.styles.Alignment"]
code: def _convert_to_alignment(cls, alignment_dict):
      """
      Convert ``alignment_dict`` to an openpyxl v2 Alignment object.
  
      Parameters
      ----------
      alignment_dict : dict
          A dict with zero or more of the following keys (or their synonyms).
              'horizontal'
              'vertical'
              'text_rotation'
              'wrap_text'
              'shrink_to_fit'
              'indent'
      Returns
      -------
      alignment : openpyxl.styles.Alignment
      """
      from openpyxl.styles import Alignment
  
      return Alignment(**alignment_dict)
  
imports: from __future__ import annotations
  import mmap
  from typing import TYPE_CHECKING, Any, Tuple, cast
  import numpy
  from pandas._typing import FilePath, ReadBuffer, Scalar, StorageOptions, WriteExcelBuffer
  from pandas.compat._optional import import_optional_dependency
  from pandas.util._decorators import doc
  from pandas.core.shared_docs import _shared_docs
  from pandas.io.excel._base import BaseExcelReader, ExcelWriter
  from pandas.io.excel._util import combine_kwargs, validate_freeze_panes
label_desc: Use image node_id 12 for calling the OpenpyxlWriter obj's underlying member method code with example usage: obj._convert_to_alignment(cls, alignment_dict) and returns: Alignment