from typing import Dict


def failed_chunk(event: Dict, _c: Dict) -> Dict:
    """
    Lambda function to handle a failed chunk to allow processing to continue.

    :param event: lambda expected event object
    :param _c: lambda expected context object (unused)
    :returns: remaining records to be processed
    """

    print(f'These failed to process:\n{event.get("chunkProcessed")}')

    # you would want to do something here with the `chunkProcessed`
    # like send to DynamoDB for offline processing or retry later, etc.
    del event['chunkResponse']
    del event['chunkProcessed']

    return event