code: def _get_snapshot(self):
          
          if self._snapshot is None:
              self._snapshot = self._get_session().snapshot(
                  read_timestamp=self._read_timestamp,
                  exact_staleness=self._exact_staleness,
                  multi_use=True,
              )
              self._snapshot.begin()
          return self._snapshot
docs: Create snapshot if needed.