code: def clone_model(model_instance):
      
  
      data = model_instance.to_dict_with_types()
  
      parser = ModelParser(model_dict=data)
  
      return parser.get_model()
docs: Returns a copy of the given model with all objects cloned. This is equivalent to saving the model to
      a file and reload it, but it doesn't require writing or reading to/from disk. The original model is not touched.
  
      :param model: model to be cloned
      :return: a cloned copy of the given model