code: def readFragmentScores(name="fpscores"):
      import gzip
  
      global _fscores
      # generate the full path filename:
      if name == "fpscores":
          name = op.join(op.dirname(__file__), name)
          with open("saved/s.pkl", "rb") as pickle_file:
              _fscores = cPickle.load(pickle_file)
  
      outDict = {}
      for i in _fscores:
          for j in range(1, len(i)):
              outDict[i[j]] = float(i[0])
      _fscores = outDict
  
file_path: DIG/dig/ggraph/method/JTVAE/fast_jtnn/sascorer.py
imports: from __future__ import print_function
  from rdkit import Chem
  from rdkit.Chem import rdMolDescriptors
  from rdkit.six.moves import cPickle
  from rdkit.six import iteritems
  import math
  from collections import defaultdict
  import os.path
label_desc: Use image node_id 1 for calling a global function with example usage: readFragmentScores(name) without return types