def format_name(name, depth=0):
    """Format a string for nested data printing

    Args:
        name (str): input string
        depth (int, optional): depth of the nested information
    Returns:
        str: formatted string
    """
    if depth == 0:
        return name
    elif depth == 1:
        return f'├─{name}'
    else:
        return f"{'|    ' * (depth - 1)}└─{name}"
