Tensorflow.data.experimental.load not working inside tensorflow.data.Dataset().flatmap

I am trying to load data inside flat_map. Inside map_func used in flat_map, Im unable to get file name from input argument.
`filenames = [“data4/0/31”, “data4/0/32”]
dataset = tf.data.Dataset.from_tensor_slices(filenames)
def parse_fn(filename):
return tf.data.experimental.load(filename)
dataset = dataset.interleave(lambda x:
cycle_length=4, block_length=16)

for item in dataset.as_numpy_iterator():

I already posted a question in stackoverflow.
python - Trying to load dataset inside flat_map got error ‘TypeError: expected str, bytes or os.PathLike object, not Tensor’ - Stack Overflow