code: def _parse_label_lines(lines: List[str]) -> Dict[str, str]:
      seen = False
      ret = {}
      for line in lines:
          idx = line.find(_LABEL_TOKEN)
          if idx < 0:
              # Stop parsing on first non token line after match
              if seen:
                  break
              continue
          seen = True
          label_str = line[idx + len(_LABEL_TOKEN) :]
  
          # match identifier (first token without key=value syntax (optional)
          # Note: Parse is fairly permissive as it doesnt enforce strict syntax
          r = MATCH_RE.match(label_str)
          if r:
              ret["code"] = r.group("code").replace("-", "_")
              label_str = r.group("rest")
  
          # match rest of tokens on one line
          tokens = re.findall(
              r'([a-zA-Z0-9_]+)\s*=\s*("[a-zA-Z0-9_-]*"|[a-zA-Z0-9_-]*)[,}]',
              label_str,
          )
          for k, v in tokens:
              ret[k] = v.strip('"').replace("-", "_")
      return ret
  
file_path: wandb/wandb/sdk/lib/telemetry.py
imports: import re
  import sys
  from types import TracebackType
  from typing import TYPE_CHECKING, ContextManager, Dict, List, Optional, Set, Type
  import wandb
  from wandb.proto.wandb_telemetry_pb2 import Imports
  from wandb.proto.wandb_telemetry_pb2 import TelemetryRecord
label_desc: Use image node_id 2 for calling a global function with example usage: _parse_label_lines(lines) and returns: ret