code: def _clone(self):
          
          cloned_self = self.__class__(
              *self.flat_path, project=self.project, namespace=self.namespace
          )
          # If the current parent has already been set, we re-use
          # the same instance
          cloned_self._parent = self._parent
          return cloned_self
docs: Duplicates the Key.
  
          Most attributes are simple types, so don't require copying. Other
          attributes like ``parent`` are long-lived and so we re-use them.
  
          :rtype: :class:`google.cloud.datastore.key.Key`
          :returns: A new ``Key`` instance with the same data as the current one.