def get_access(name):
    """Get access based on name

    In Python __var__ refers to a private access
    _var refers to protected access
    and var would refer to public access
    """
    assert isinstance(name, str), "Expecting name to be a string"
    if len(name) > 4 and "__" == name[:2] and "__" == name[-2:]:
        return "PRIVATE"
    elif len(name) > 1 and name[0] == "_":
        return "PROTECTED"
    else:
        return "PUBLIC"