This comment summarize the problem: #2545 (comment)
How to reproduce:
Make sure tflite_micro is not installed. Either of these should run successfully,
./tensorflow/lite/micro/tools/ci_build/test_generate_integration_tests.sh
./tensorflow/lite/micro/tools/ci_build/test_generate_micro_mutable_op_resolver_tests.sh
Now pip install tflite_micro and try to run the ci test scripts. It fails, e.g.
from tflite_micro.tensorflow.lite.micro.tools import generate_test_for_model
ModuleNotFoundError: No module named 'tflite_micro.tensorflow.lite.micro'