code: def write(self, record: "pb.Record") -> None:
      record_type = record.WhichOneof("record_type")
      assert record_type
      writer_str = "write_" + record_type
      write_handler: Callable[[pb.Record], None] = getattr(
          self, writer_str, self._write
      )
      write_handler(record)
  
imports: import logging
  from typing import TYPE_CHECKING, Callable, Optional
  from wandb.proto import wandb_internal_pb2
  from wandb.proto import wandb_telemetry_pb2
  from ..interface.interface_queue import InterfaceQueue
  from ..lib import proto_util, telemetry, tracelog
  from .None import context, datastore, flow_control
  from .settings_static import SettingsStatic
label_desc: Use image node_id 11 for calling the WriteManager obj's underlying member method code with example usage: obj.write(record) without return types