code: def _check_ref_counts(cls, keys: List[str], ref_counts: List[int]):
      if ref_counts is not None and len(keys) != len(ref_counts):
          raise ValueError(
              f"`ref_counts` should have same size as `keys`, expect {len(keys)}, got {len(ref_counts)}"
          )
  
imports: import asyncio
  import itertools
  import logging
  from collections import defaultdict
  from typing import Dict, List, Optional
  from ....None import oscar
  from ....lib.aio import alru_cache
  from ...meta.api import MetaAPI
  from ...storage.api import StorageAPI
  from ..errors import TileableNotTracked
label_desc: Use image node_id 4 for calling the LifecycleTrackerActor obj's underlying member method code with example usage: obj._check_ref_counts(cls, keys, ref_counts) without return types