async def is_object_synced_to_cn(self, client, pid):
        """Check if object with {pid} has successfully synced to the CN.

        CNRead.describe() is used as it's a light-weight HTTP HEAD request.

        This assumes that the call is being made over a connection that has been
        authenticated and has read or better access on the given object if it exists.

        """
        try:
            await client.describe(pid)
        except d1_common.types.exceptions.DataONEException:
            return False
        return True
async def is_object_synced_to_cn ( self , client , pid ) : try : await client . describe ( pid ) except d1_common . types . exceptions . DataONEException : return False return True
Check if object with {pid} has successfully synced to the CN.

        CNRead.describe() is used as it's a light-weight HTTP HEAD request.

        This assumes that the call is being made over a connection that has been
        authenticated and has read or better access on the given object if it exists.