code: def try_parse_int(
          s: str,
          default: Optional[Any] = None,
          minimum: Optional[int] = None,
          maximum: Optional[int] = None) -> Optional[Any]:
      
      try:
          n = int(s)
      except ValueError:
          return default
      if (minimum is not None) and (n < minimum):
          return default
      elif (maximum is not None) and (n > maximum):
          return default
      return n
docs: Try parsing a string into an integer.
          On failure, return `default`.
          If the number is less then `minimum` or greater than `maximum`,
          return `default`.
          Returns an integer on success.