code: def _adjust_ranges(self):
      start = (
          self.record_range.start
          if self.record_range.start is not None
          else self.total_record_range.start
      )
      stop = (
          self.record_range.stop
          if self.record_range.stop is not None
          else self.total_record_range.stop
      )
      self.record_range = IndexRange(start, stop)
      if self.use_list:
          start = (
              self.index_range.start
              if self.index_range.start is not None
              else self.total_index_range.start
          )
          stop = (
              self.index_range.stop
              if self.index_range.stop is not None
              else self.total_index_range.stop
          )
          self.index_range = IndexRange(start, stop)
  
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 14 for calling the CustomObjectApi obj's underlying member method code with example usage: obj._adjust_ranges() without return types