def get_compartment_id(engine, cluster_id):
    """ Gets the department details which is needed to get the correct node.

    Args:
        engine (oci.container_engine.ContainerEngineClient object): Oci connection object
        cluster_id (str): oci ID of the cluster in question.

    Returns string of compartment ID.
    """
    get_cluster_response = engine.get_cluster(cluster_id=cluster_id)
    return get_cluster_response.data.compartment_id