code: def _read_binary(pkgname, filename):
      import sys
  
      if sys.version_info >= (3, 10):
          # files was added in Python 3.9 but only seems to work here in 3.10+
          from importlib.resources import files
  
          return files(pkgname).joinpath(filename).read_bytes()
      else:
          # read_binary was deprecated in Python 3.11
          from importlib.resources import read_binary
  
          return read_binary(pkgname, filename)
  
imports: from pathlib import Path
  from sympy.utilities.decorator import doctest_depends_on
label_desc: Use image node_id 2 for calling a global function with example usage: _read_binary(pkgname, filename) and returns: files, read_binary