def METHOD_NAME(**kw):
    """Verify the trash purge functionality.
    This module verifies trash purge operation
    Args:
        kw: test data
    Returns:
        int: The return value. 0 for success, 1 otherwise
    Pre-requisites :
    We need atleast one client node with ceph-common package,
    conf and keyring files
    Test cases covered -
    1) CEPH-83574482 - 'rbd trash purge' should purge all images without snapshots
    or clones in the pool specified
    Test Case Flow
    1. Create a pool and multiple Images
    2. generate IO in images
    3. Create clones for few of the images
    4. Move images to trash
    5. Perform rbd trash purge on the pool. Purge should work without getting stuck.
    Images without clones should get purged.
    6. Repeat the above steps for EC-pool.
    """
    log.info(
        "CEPH-83574482 - Running Trash purge test on images with and without clones"
    )
    rbd_obj = initial_rbd_config(**kw)
    if rbd_obj:
        if "rbd_reppool" in rbd_obj:
            log.info("Executing test on Replication pool")
            if rbd_trash_purge(rbd_obj.get("rbd_reppool"), "rep_pool_config", **kw):
                return 1
        if "rbd_ecpool" in rbd_obj:
            log.info("Executing test on EC pool")
            if rbd_trash_purge(rbd_obj.get("rbd_ecpool"), "ec_pool_config", **kw):
                return 1
    return 0