code: def to_snake_case(text):
      
      s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', text)
      return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower()
docs: Convert to snake case.
  
      :param str text:
      :rtype: str
      :return: