code: def _is_control_record(record: "Record") -> bool:
      return record.control.flow_control
  
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 a global function with example usage: _is_control_record(record) and returns: record