code: def _copy_new_parent(self, parent):
          
          if self.parent == "undefined":
              param = copy.copy(self)
              param.parent = parent.uid
              return param
          else:
              raise ValueError("Cannot copy from non-dummy parent %s." % parent)
docs: Copy the current param to a new parent, must be a dummy param.