code: def _parse_kv_arg(arg, sep):
      result = {}
      if arg:
          for item in arg:
              var, val = item.split(sep, 1)
              result[var] = val
      return result
  
imports: import argparse
  import json
  from dataclasses import dataclass
  from typing import Optional
label_desc: Use image node_id 2 for calling a global function with example usage: _parse_kv_arg(arg, sep) and returns: result