def is_zeros()

in src/local_gpu_verifier/src/verifier/utils/__init__.py [0:0]


def is_zeros(x):
    """ This function checks if all the character are zeros of the given input
    string.

    Args:
        x (str): the input string.

    Returns:
        [bool]: True if all the characters are '0', otherwise False.
    """
    assert type(x) is str
    
    for i in range(len(x)):
        if x[i] != '0':
            return False
    
    return True