code: def parse_sdf_file(sdf_file, amount=None):
      data = sdf_file.read().split("$$$$\n")
      if data[-1] == "":
          data = data[:-1]
      if amount is not None:
          data = data[:amount]
      output = [
          parse_sdf(sdf) for sdf in data
      ]  # Parallel execution doesn't help
      return output
  
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 21 for calling a global function with example usage: parse_sdf_file(sdf_file, amount) and returns: output