import lzma
import json


def raw_numpy_to_object(numpy_bytes_array):
    """Convert numpy array to a Python object.

    Args:
        numpy_bytes_array: a numpy array of bytes.

    Returns:
        Return a Python object.
    """

    return json.loads(
        lzma.decompress(numpy_bytes_array.tobytes()).decode('utf-16'),
    )