def METHOD_NAME(chunked_result: Iterable[Mapping[str, Any]], merge_by_key: str) -> Iterable[Mapping[str, Any]]:
    """
    We need to merge the chunked API responses
    into the single structure using any available unique field.
    """
    # Merge the pieces together
    merged = defaultdict(dict)
    for chunk in chunked_result:
        for item in chunk:
            merged[item[merge_by_key]].update(item)
    # Clean up the result by getting out the values of the merged keys
    result = []
    for item in merged:
        result.append(merged.get(item))
    yield from result