def create_initial_tree(channel):
    """ create_initial_tree: Create initial tree structure
        Args:
            channel (Channel): channel to construct
        Returns: tree manager to run rest of steps
    """
    # Create channel manager with channel data
    config.LOGGER.info("   Setting up initial channel structure... ")
    tree = ChannelManager(channel)

    # Make sure channel structure is valid
    config.LOGGER.info("   Validating channel structure...")
    channel.print_tree()
    tree.validate()
    config.LOGGER.info("   Tree is valid\n")
    return tree
def create_initial_tree ( channel ) : config . LOGGER . info ( "   Setting up initial channel structure... " ) tree = ChannelManager ( channel ) config . LOGGER . info ( "   Validating channel structure..." ) channel . print_tree ( ) tree . validate ( ) config . LOGGER . info ( "   Tree is valid\n" ) return tree
create_initial_tree: Create initial tree structure
        Args:
            channel (Channel): channel to construct
        Returns: tree manager to run rest of steps