def is_nonneg_int(num_str):
    """
    Args:
        num_str (str): The string that is checked to see if it represents a nonneg integer

    Returns:
        bool
    """

    assert isinstance(num_str, str)
    return num_str.isdigit()