code: def test_font_manager_weight_normalization():
      font = _afm.AFM(
          BytesIO(
              AFM_TEST_DATA.replace(
                  b"Weight Bold\n", b"Weight Custom\n"
              )
          )
      )
      assert fm.afmFontProperty("", font).weight == "normal"
  
file_path: matplotlib/lib/matplotlib/tests/test_afm.py
imports: from io import BytesIO
  import pytest
  import logging
  from matplotlib import _afm
  from matplotlib import font_manager
label_desc: Use image node_id 5 for calling a global function with example usage: test_font_manager_weight_normalization() without return types