original_docstring: Fetch key of this pseudo-kind within txn.
  
      Args:
        txn: transaction within which Get occurs, may be None if this is an
             eventually consistent Get.
        key: key of pseudo-entity to Get.
  
      Returns:
        An entity for key, or None if it doesn't exist.
      
docstring: Fetch key of this pseudo-kind within txn.
docstring_tokens: Fetch key of this pseudo - kind within txn .
code: def Get(self, txn, key):
      """Fetch key of this pseudo-kind within txn.
  
      Args:
        txn: transaction within which Get occurs, may be None if this is an
             eventually consistent Get.
        key: key of pseudo-entity to Get.
  
      Returns:
        An entity for key, or None if it doesn't exist.
      """
  
      if not txn:
        txn = self._stub._BeginTransaction(key.app(), False)
        try:
          return self.Get(txn, key)
        finally:
          txn.Rollback()
  
  
      if isinstance(txn._txn_manager._consistency_policy,
                    MasterSlaveConsistencyPolicy):
        return None
  
  
  
  
  
  
      path = key.path()
      if path.element_size() != 2 or path.element_list()[-1].id() != 1:
        return None
  
      tracker = txn._GetTracker(key)
      tracker._GrabSnapshot(txn._txn_manager)
  
      eg = entity_pb.EntityProto()
      eg.mutable_key().CopyFrom(key)
      eg.mutable_entity_group().CopyFrom(_GetEntityGroup(key).path())
      version = entity_pb.Property()
      version.set_name('__version__')
      version.set_multiple(False)
      version.mutable_value().set_int64value(
          tracker._read_pos + self.base_version)
      eg.property_list().append(version)
      return eg
code_tokens: def Get ( self , txn , key ) : if not txn : txn = self . _stub . _BeginTransaction ( key . app ( ) , False ) try : return self . Get ( txn , key ) finally : txn . Rollback ( ) if isinstance ( txn . _txn_manager . _consistency_policy , MasterSlaveConsistencyPolicy ) : return None path = key . path ( ) if path . element_size ( ) != 2 or path . element_list ( ) [ - 1 ] . id ( ) != 1 : return None tracker = txn . _GetTracker ( key ) tracker . _GrabSnapshot ( txn . _txn_manager ) eg = entity_pb . EntityProto ( ) eg . mutable_key ( ) . CopyFrom ( key ) eg . mutable_entity_group ( ) . CopyFrom ( _GetEntityGroup ( key ) . path ( ) ) version = entity_pb . Property ( ) version . set_name ( '__version__' ) version . set_multiple ( False ) version . mutable_value ( ) . set_int64value ( tracker . _read_pos + self . base_version ) eg . property_list ( ) . append ( version ) return eg
short_docstring: Fetch key of this pseudo-kind within txn.
short_docstring_tokens: Fetch key of this pseudo - kind within txn .
comment: """Fetch key of this pseudo-kind within txn.
  
      Args:
        txn: transaction within which Get occurs, may be None if this is an
             eventually consistent Get.
        key: key of pseudo-entity to Get.
  
      Returns:
        An entity for key, or None if it doesn't exist.
      """