code: def parse_phone(phone):
      
      if isinstance(phone, int):
          return str(phone)
      else:
          phone = re.sub(r'[+()\s-]', '', str(phone))
          if phone.isdigit():
              return phone
docs: Parses the given phone, or returns ``None`` if it's invalid.