code: def gen_opt_str(ser_rec: pd.Series)->str:
      '''generate rst option string
  
      Parameters
      ----------
      ser_rec : pd.Series
          record for specifications
  
      Returns
      -------
      str
          rst string
      '''
  
      name = ser_rec.name
      indent = r'    '
      str_opt = f'.. option:: {name}'+'\n\n'
      for spec in ser_rec.sort_index().index:
          str_opt += indent+f':{spec}:'+'\n'
          spec_content = ser_rec[spec]
          str_opt += indent+indent+f'{spec_content}'+'\n'
      return str_opf gen_opt_str(ser_rec: pd.Series)->str:
      '''generate rst option string
  
      Parameters
      ----------
      ser_rec : pd.Series
          record for specifications
  
      Returns
      -------
      str
          rst string
      '''
  
      name = ser_rec.name
      indent = r'    '
      str_opt = f'.. option:: {name}'+'\n\n'
      for spec in ser_rec.sort_index().index:
          str_opt += indent+f':{spec}:'+'\n'
          spec_content = ser_rec[spec]
          str_opt += indent+indent+f'{spec_content}'+'\n'
      return str_opt
docs: generate rst option string
  
      Parameters
      ----------
      ser_rec : pd.Series
          record for specifications
  
      Returns
      -------
      str
          rst string