code: def translate_to(compound, pos):
      
      atom_positions = compound.xyz_with_ports
      atom_positions -= compound.center
      atom_positions = Translation(pos).apply_to(atom_positions)
      compound.xyz_with_ports = atom_positions
docs: Translate a compound to a coordinate.
  
      Parameters
      ----------
      compound : mb.Compound
          The compound being translated.
      pos : np.ndarray, shape=(3,), dtype=float
          The coordinate to translate the compound to.