code: def compute_all_pairs_shortest_path(
      mol,
  ) -> Dict[Tuple[int, int], Tuple[int, int]]:
      """Computes the All pair shortest between every pair of nodes
      in terms of Rdkit Atom indexes.
  
      Parameters:
      -----------
      mol: rdkit.rdchem.Mol
          Molecule containing a ring
  
      Returns:
      --------
      paths_dict: Dict representing every atom-atom pair as key in Rdkit index
      and value as the shortest path between each atom pair in terms of Atom index.
      """
      try:
          from rdkit import Chem
      except:
          raise ImportError("This class requires RDkit installed")
      n_atoms = mol.GetNumAtoms()
      paths_dict = {
          (i, j): Chem.rdmolops.GetShortestPath(mol, i, j)
          for i in range(n_atoms)
          for j in range(n_atoms)
          if i < j
      }
      return paths_dict
  
imports: import os
  import logging
  import itertools
  import numpy
  from io import StringIO
  from deepchem.utils.pdbqt_utils import pdbqt_to_pdb
  from deepchem.utils.pdbqt_utils import convert_mol_to_pdbqt
  from deepchem.utils.pdbqt_utils import convert_protein_to_pdbqt
  from deepchem.utils.geometry_utils import compute_pairwise_distances
  from deepchem.utils.geometry_utils import compute_centroid
  from deepchem.utils.fragment_utils import MolecularFragment
  from deepchem.utils.fragment_utils import MoleculeLoadException
  from typing import Any, List, Sequence, Tuple, Set, Optional, Dict, Union
  from deepchem.utils.typing import OneOrMany, RDKitMol
label_desc: Use image node_id 18 for calling a global function with example usage: compute_all_pairs_shortest_path(mol) and returns: paths_dict