@Override
    protected Tensor readTensorFromFile(String name, TensorType type, FileReference fileReference) {
        try {
            var path = constantsPath.append(fileReference.value());
            var file = path.toFile();
            return TypedBinaryFormat.decode(Optional.of(type),
                                            GrowableByteBuffer.wrap(IOUtils.readFileBytes(file)));
        }
        catch (IOException e) {
            log.warning("Missing a mocked tensor constant for '" + name + "': " + e.getMessage() +
                    ". Returning an empty tensor");
            return Tensor.from(type, "{}");
        }
    }
Allows us to provide canned tensor constants during import since file distribution does not work in tests
model-evaluation/src/test/java/ai/vespa/models/evaluation/RankProfilesConfigImporterWithMockedConstants.java