code: def __init__(self, seq_type: str, resolve_blobs: bool):
      seq_cls = Sequence.registry.get(seq_type, None)
      if seq_cls is None:
          raise ValueError(
              f"'{self.seq_type}' is not a valid sequence type."
          )
      self.seq_type = seq_cls.sequence_name()
      self.resolve_blobs = resolve_blobs
      self.use_list = seq_cls.collections_allowed
      self.dump_fn = None
  
      self.traces: SequenceCollection = None
      self.requested_traces: list = []
      self.run: Run = None
      self.trace_cache: dict = {}
  
      self.record_range = None
      self.record_density = None
      self.total_record_range = None
      self.index_range = None
      self.index_density = None
      self.index_slice = None
      self.total_index_range = None
  
      if self.use_list:
          self._value_retriever = self._record_collection_retriever
      else:
          self._value_retriever = self._record_to_encodable
  
imports: import asyncio
  import time
  from typing import Iterable, Iterator, List, Tuple, Union, Optional
  from typing import TYPE_CHECKING
  from aim.web.api.runs.utils import ASYNC_SLEEP_INTERVAL, PROGRESS_KEY_SUFFIX, IndexRange, collect_streamable_data, get_run_props, get_run_params
  from aim.web.configs import AIM_PROGRESS_REPORT_INTERVAL
  from aim.sdk.uri_service import URIService, generate_resource_path
  from aim.sdk.sequence_collection import SequenceCollection
  from aim.sdk.sequence import Sequence
  from aim.storage.treeutils import encode_tree
  from aim.storage.context import Context
label_desc: Use image node_id 1 to create a new CustomObjectApi object  with example: obj = CustomObjectApi(seq_type, resolve_blobs)