getItem(elementIndex, elementShape, elementDtype) {
        if (elementDtype !== this.elementDtype) throw new Error(`Invalid data types; op elements ${elementDtype}, but list elements ${this.elementDtype}`);
        if (elementIndex < 0 || elementIndex > this.tensors.length) throw new Error(`Trying to access element ${elementIndex} in a list with ${this.tensors.length} elements.`);
        if (this.tensors[elementIndex] == null) throw new Error(`element at index ${elementIndex} is null.`);
        (0, _tensorUtils.assertShapesMatchAllowUndefinedSize)(this.tensors[elementIndex].shape, elementShape, "TensorList shape mismatch: ");
        const outputElementShape = (0, _tensorUtils.inferElementShape)(this.elementShape, this.tensors, elementShape);
        return (0, _tfjsCore.reshape)(this.tensors[elementIndex], outputElementShape);
    }
Retrieve the element at the provided index
@param elementShape shape of the tensor
@param elementDtype dtype of the tensor
@param elementIndex index of the tensor