code: def standard_to_absl(level):
    
    if not isinstance(level, int):
      raise TypeError('Expect an int level, found {}'.format(type(level)))
    if level < 0:
      level = 0
    if level < STANDARD_DEBUG:
      # Maps to vlog levels.
      return STANDARD_DEBUG - level + 1
    elif level < STANDARD_INFO:
      return ABSL_DEBUG
    elif level < STANDARD_WARNING:
      return ABSL_INFO
    elif level < STANDARD_ERROR:
      return ABSL_WARNING
    elif level < STANDARD_CRITICAL:
      return ABSL_ERROR
    else:
      return ABSL_FATAL
docs: Converts an integer level from the standard value to the absl value.
  
    Args:
      level: int, a Python standard logging level.
  
    Raises:
      TypeError: Raised when level is not an integer.
  
    Returns:
      The corresponding integer level for use in absl logging.