def copy(self):
    return copy.deepcopy(self)

  ######################################################### Set field 
  #########################################################
Make sure custom rules that aren't hooked to any other rules still
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/suffstats/ParamBag.py/ParamBag.copy--crossover with--dataset/ETHPy150Open erikrose/parsimonious/parsimonious/tests/test_grammar.py/GrammarTests.test_unconnected_custom_rules