code: def get_actual_capacity(plasma_client: "plasma.PlasmaClient") -> int:
      """
      Get actual capacity of plasma store
  
      Parameters
      ----------
      plasma_client: PlasmaClient
          Plasma client.
  
      Returns
      -------
      size: int
          Actual storage size in bytes
      """
      store_limit = plasma_client.store_capacity()
  
      left_size = store_limit
      alloc_fraction = 1
      while True:
          allocate_size = (
              int(left_size * alloc_fraction / PAGE_SIZE) * PAGE_SIZE
          )
          try:
              obj_id = plasma.ObjectID.from_random()
              buf = [plasma_client.create(obj_id, allocate_size)]
              plasma_client.seal(obj_id)
              del buf[:]
              break
          except plasma.PlasmaStoreFull:  # pragma: no cover
              alloc_fraction *= 0.99
          finally:
              plasma_client.evict(allocate_size)
      return allocate_size
  
imports: import asyncio
  import sys
  from dataclasses import dataclass
  from functools import lru_cache
  from typing import Any, Dict, List, Optional, Tuple
  import psutil
  import pyarrow
  from ..resource import virtual_memory
  from ..serialization import AioSerializer, AioDeserializer
  from ..utils import implements, dataslots, calc_size_by_str, lazy_import
  from .base import StorageBackend, StorageLevel, ObjectInfo, register_storage_backend
  from .core import BufferWrappedFileObject, StorageFileObject
  from .errors import DataNotExist
label_desc: Use image node_id 1 for calling a global function with example usage: get_actual_capacity(plasma_client) and returns: allocate_size