Need some help on importing importlib_metadata

Hi,
I am running an example code from a tutorial, but the code ran into an issue.

Traceback (most recent call last):
  File "/data3/aldousshou/lambda-mart/train_mslr.py", line 19, in <module>
    from mytransformers_emb_sim.src.transformers.models.t5.modeling_t5_mslr_add_eof import T5Config,T5ForRank_v2
  File "/data3/aldousshou/lambda-mart/mytransformers_emb_sim/src/transformers/__init__.py", line 43, in <module>
    from . import dependency_versions_check
  File "/data3/aldousshou/lambda-mart/mytransformers_emb_sim/src/transformers/dependency_versions_check.py", line 36, in <module>
    from .file_utils import is_tokenizers_available
  File "/data3/aldousshou/lambda-mart/mytransformers_emb_sim/src/transformers/file_utils.py", line 52, in <module>
    from transformers.utils.versions import importlib_metadata
ImportError: cannot import name 'importlib_metadata' from 'transformers.utils.versions' (/home/aldousshou/.conda/main/lib/python3.12/site-packages/transformers/utils/versions.py)

I have tried installing most major versions in the past year. I also tried to build the souce code. But none works.

Any other Solutions I could try?
Thx!