print(f"filename: {(tf.strings.join(tf.strings.split(file_path),separator=" ").numpy()).decode('utf-8')}
file_path --> tensor containing string
This might help