docstr: Metrics for the run.
  
  We expect metrics in this shape:
  
  [
      {'metric1': 1, 'metric2': 1, '_step': 0},
      {'metric1': 2, 'metric2': 4, '_step': 1},
      {'metric1': 3, 'metric2': 9, '_step': 2},
      ...
  ]
  
  You can also submit metrics in this shape:
  [
      {'metric1': 1, '_step': 0},
      {'metric2': 1, '_step': 0},
      {'metric1': 2, '_step': 1},
      {'metric2': 4, '_step': 1},
      ...
  ]
docstr_tok: ["Metrics","for","the","run",".","We","expect","metrics","in","this","shape",":","[","{","'metric1","'",":","1",",","'metric2","'",":","1",",","'_step","'",":","0","}",",","{","'metric1","'",":","2",",","'metric2","'",":","4",",","'_step","'",":","1","}",",","{","'metric1","'",":","3",",","'metric2","'",":","9",",","'_step","'",":","2","}",",","...","]","You","can","also","submit","metrics","in","this","shape",":","[","{","'metric1","'",":","1",",","'_step","'",":","0","}",",","{","'metric2","'",":","1",",","'_step","'",":","0","}",",","{","'metric1","'",":","2",",","'_step","'",":","1","}",",","{","'metric2","'",":","4",",","'_step","'",":","1","}",",","...","]"]
code: def metrics(self) -> Iterable[Dict[str, float]]:
      """Metrics for the run.
  
      We expect metrics in this shape:
  
      [
          {'metric1': 1, 'metric2': 1, '_step': 0},
          {'metric1': 2, 'metric2': 4, '_step': 1},
          {'metric1': 3, 'metric2': 9, '_step': 2},
          ...
      ]
  
      You can also submit metrics in this shape:
      [
          {'metric1': 1, '_step': 0},
          {'metric2': 1, '_step': 0},
          {'metric1': 2, '_step': 1},
          {'metric2': 4, '_step': 1},
          ...
      ]
      """
      ...
  
imports: import json
  import os
  import queue
  import sys
  from dataclasses import dataclass
  from typing import Any, Dict, Iterable, List, Optional, Tuple
  from unittest.mock import patch
  from google.protobuf.json_format import ParseDict
  from tqdm import tqdm
  import wandb
  from wandb.proto import wandb_internal_pb2
  from wandb.proto import wandb_settings_pb2
  from wandb.proto import wandb_telemetry_pb2
  from wandb.sdk.interface.interface import file_policy_to_enum
  from wandb.sdk.interface.interface_queue import InterfaceQueue
  from wandb.sdk.internal import context
  from wandb.sdk.internal.sender import SendManager
  from wandb.sdk.internal.settings_static import SettingsStatic
  from wandb.util import cast_dictlike_to_dict, coalesce
label_desc: Use image node_id 6 for calling the ImporterRun obj's underlying member method code with example usage: obj.metrics() without return types