code: def compute_charge_dictionary(molecule):
      """Create a dictionary with partial charges for each atom in the molecule.
  
      This function assumes that the charges for the molecule are
      already computed (it can be done with
      rdkit_util.compute_charges(molecule))
      """
  
      charge_dictionary = {}
      for i, atom in enumerate(molecule.GetAtoms()):
          charge_dictionary[i] = get_partial_charge(atom)
      return charge_dictionary
  
imports: import itertools
  import logging
  import numpy
  from deepchem.utils import rdkit_utils
  from deepchem.feat import ComplexFeaturizer
  from deepchem.utils.voxel_utils import voxelize
  from deepchem.utils.voxel_utils import convert_atom_to_voxel
  from deepchem.utils.voxel_utils import convert_atom_pair_to_voxel
  from deepchem.utils.noncovalent_utils import compute_salt_bridges
  from deepchem.utils.noncovalent_utils import compute_binding_pocket_cation_pi
  from deepchem.utils.noncovalent_utils import compute_pi_stack
  from deepchem.utils.noncovalent_utils import compute_hydrogen_bonds
  from deepchem.utils.rdkit_utils import MoleculeLoadException
  from deepchem.utils.rdkit_utils import compute_contact_centroid
  from deepchem.utils.geometry_utils import compute_pairwise_distances
  from deepchem.utils.geometry_utils import subtract_centroid
  from deepchem.utils.fragment_utils import get_partial_charge
  from deepchem.utils.fragment_utils import reduce_molecular_complex_to_contacts
  from typing import List, Tuple, Optional
label_desc: Use image node_id 1 for calling a global function with example usage: compute_charge_dictionary(molecule) and returns: charge_dictionary