code: def get_atom_partial_charge(atom: RDKitAtom) -> List[float]:
      """Get a partial charge of an atom.
  
      Parameters
      ---------
      atom: rdkit.Chem.rdchem.Atom
          RDKit atom object
  
      Returns
      -------
      List[float]
          A vector of the parital charge.
  
      Notes
      -----
      Before using this function, you must calculate `GasteigerCharge`
      like `AllChem.ComputeGasteigerCharges(mol)`.
      """
      gasteiger_charge = atom.GetProp("_GasteigerCharge")
      if gasteiger_charge in ["-nan", "nan", "-inf", "inf"]:
          gasteiger_charge = 0.0
      return [float(gasteiger_charge)]
  
imports: import os
  import logging
  from typing import List, Union, Tuple
  import numpy
  from deepchem.utils.typing import RDKitAtom, RDKitBond, RDKitMol
label_desc: Use image node_id 11 for calling a global function with example usage: get_atom_partial_charge(atom) and returns: list