code: def clone(existing_compound, clone_of=None, root_container=None):
      
      if clone_of is None:
          clone_of = dict()
  
      newone = existing_compound._clone(clone_of=clone_of,
                                        root_container=root_container)
      existing_compound._clone_bonds(clone_of=clone_of)
      return newone
docs: A faster alternative to deepcopying.
  
      Does not resolve circular dependencies. This should be safe provided
      you never try to add the top of a Compound hierarchy to a
      sub-Compound.
  
      Parameters
      ----------
      existing_compound : mb.Compound
          Existing Compound that will be copied
  
      Other Parameters
      ----------------
      clone_of : dict, optional
      root_container : mb.Compound, optional