code: def _update_written_offset(self, record: "Record") -> None:
      end_offset = record.control.end_offset
      if end_offset:
          self._context.last_written_offset = end_offset
  
imports: import logging
  from dataclasses import dataclass
  from typing import TYPE_CHECKING, Callable, Optional
  from wandb.proto import wandb_internal_pb2
  from wandb.sdk.lib import fsm
  from .settings_static import SettingsStatic
label_desc: Use image node_id 2 for calling the StateShared obj's underlying member method code with example usage: obj._update_written_offset(record) without return types