  py::handle GetPyObject(tensorflow::Safe_PyObjectPtr* obj) const {
    Py_INCREF(obj->get());
    return obj->get();
  }
  py::handle GetPyObject(tensorflow::Safe_PyObjectPtr* obj) const {
    Py_INCREF(obj->get());
    return obj->get();
  }