def Initialize(self):
    super(AFF4ImageBase, self).Initialize()
    self.offset = 0
    # A cache for segments - When we get pickled we want to discard them.
    self.chunk_cache = ChunkCache(self._WriteChunk, 100)

    if "r" in self.mode:
      self.size = int(self.Get(self.Schema.SIZE))
      # pylint: disable=protected-access
      self.chunksize = int(self.Get(self.Schema._CHUNKSIZE))
      # pylint: enable=protected-access
      self.content_last = self.Get(self.Schema.CONTENT_LAST)
    else:
      self.size = 0
      self.content_last = None
Return True if the provided ip is a valid IPv6-address
dataset/ETHPy150Open google/grr/grr/lib/aff4.py/AFF4ImageBase.Initialize--crossover with--dataset/ETHPy150Open openstack/swift/swift/common/ring/utils.py/is_valid_ipv6