text: from molsysmt._private.exceptions import *
  from molsysmt._private.digestion import *
  
  def to_mdtraj_Topology(item, atom_indices='all', check=True):
  
      if check:
  
          digest_item(item, 'molsysmt.MolSys')
          atom_indices = digest_atom_indices(atom_indices)
  
      from . import to_molsysmt_Topology
      from ..molsysmt_Topology import to_mdtraj_Topology as molsysmt_Topology_to_mdtraj_Topology
  
      tmp_item = to_molsysmt_Topology(item, check=False)
      tmp_item = molsysmt_Topology_to_mdtraj_Topology(tmp_item, atom_indices=atom_indices, check=False)
  
      return tmp_item
  
  