code: def select_with_refs(font, unicode, newfont, pe=None, name=None):
      newfont.selection.select(("more", "unicode"), unicode)
      log_namelist(name, unicode)
      if pe:
          print(f"SelectMore({unicode})", file=pe)
      try:
          for ref in font[unicode].references:
              newfont.selection.select(("more",), ref[0])
              log_namelist(name, ref[0])
              if pe:
                  print(f'SelectMore("{ref[0]}")', file=pe)
      except Exception:
          print(f"Resolving references on u+{unicode:04x} failed")
  
file_path: matplotlib/tools/subset.py
imports: import getopt
  import os
  import struct
  import subprocess
  import sys
  import fontforge
label_desc: Use image node_id 2 for calling a global function with example usage: select_with_refs(font, unicode, newfont, pe, name) without return types