code: def get_xyz_from_mol(mol):
      """Extracts a numpy array of coordinates from a molecules.
  
      Returns a `(N, 3)` numpy array of 3d coords of given rdkit molecule
  
      Parameters
      ----------
      mol: rdkit Molecule
          Molecule to extract coordinates for
  
      Returns
      -------
      Numpy ndarray of shape `(N, 3)` where `N = mol.GetNumAtoms()`.
      """
      xyz = np.zeros((mol.GetNumAtoms(), 3))
      conf = mol.GetConformer()
      for i in range(conf.GetNumAtoms()):
          position = conf.GetAtomPosition(i)
          xyz[i, 0] = position.x
          xyz[i, 1] = position.y
          xyz[i, 2] = position.z
      return xyz
  
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 1 for calling a global function with example usage: get_xyz_from_mol(mol) and returns: xyz