code: def load_sdf(filename, amount=None):
      """
      Load an .sdf file and return a list of molecules in the internal SDF format.
      :param filename: target SDF file
      :param amount: only load the first `amount` molecules from the file
      :return: a list of molecules in the internal SDF format (see documentation).
      """
      print("Reading SDF")
      with open(filename) as f:
          return parse_sdf_file(f, amount=amount)
  
imports: import ast
  import sys
  import joblib
  import networkx
  import numpy
  import pandas
  import scipy.sparse
  from spektral.data.graph import Graph
label_desc: Use image node_id 22 for calling a global function with example usage: load_sdf(filename, amount) and returns: parse_sdf_file