docstr: Produces equivalent float and string representation of a given quantile
  level.
  
  >>> Quantile.parse(0.1)
  Quantile(value=0.1, name='0.1')
  
  >>> Quantile.parse('0.2')
  Quantile(value=0.2, name='0.2')
  
  >>> Quantile.parse('0.20')
  Quantile(value=0.2, name='0.20')
  
  >>> Quantile.parse('p99')
  Quantile(value=0.99, name='0.99')
  
  Parameters
  ----------
  quantile
      Quantile, can be a float a str representing a float e.g. '0.1' or a
      quantile string of the form 'p10'.
  
  Returns
  -------
  Quantile
      A tuple containing both a float and a string representation of the
      input quantile level.
code: def parse(cls, quantile: Union["Quantile", float, str]) -> "Quantile":
      """
      Produces equivalent float and string representation of a given quantile
      level.
  
      >>> Quantile.parse(0.1)
      Quantile(value=0.1, name='0.1')
  
      >>> Quantile.parse('0.2')
      Quantile(value=0.2, name='0.2')
  
      >>> Quantile.parse('0.20')
      Quantile(value=0.2, name='0.20')
  
      >>> Quantile.parse('p99')
      Quantile(value=0.99, name='0.99')
  
      Parameters
      ----------
      quantile
          Quantile, can be a float a str representing a float e.g. '0.1' or a
          quantile string of the form 'p10'.
  
      Returns
      -------
      Quantile
          A tuple containing both a float and a string representation of the
          input quantile level.
      """
      if isinstance(quantile, Quantile):
          return quantile
  
      if isinstance(quantile, float):
          return cls.from_float(quantile)
  
      return cls.from_str(quantile)
  
imports: import re
  import logging
  from dataclasses import field
  from typing import Callable, Dict, List, Optional, Union, Tuple
  import numpy
  import pandas
  from gluonts.core.component import validated
  from gluonts.pydantic import dataclass
  from gluonts import maybe
label_desc: Use image node_id 3 for calling the Quantile obj's underlying member method code with example usage: obj.parse(cls, quantile) and returns: cls, quantile, cls