code: def getICMPrimitives(uuid: str):
      
      primitives = [
          p.deserialize()
          for p in CausalPrimitive.query.filter_by(model_id=uuid).all()
      ]
      for p in primitives:
          del p["model_id"]
      return jsonify(primitives)
docs: returns all ICM primitives (TODO - needs filter support)