def get_chain_info(chain):
    """ Function print info about chain and return operations in it and depth

    :param chain: chain to process
    :return obtained_operations: operations in the nodes
    :return depth: depth of the chain
    """

    obtained_operations = [str(node) for node in chain.nodes]
    depth = int(chain.depth)
    chain.print_structure()

    return obtained_operations, depth