code: def parse_key_value_arg(arg, errmsg):
      try:
          key, val = arg.split("=", 1)
      except ValueError:
          raise ValueError(
              errmsg + f" (Unparseable value: {repr(arg)})"
          )
      val = val.strip("'\"")
      return key, val
  
imports: import contextlib
  import itertools
  import math
  import operator
  import platform
  import hashlib
  import inspect
  import sys
  import uuid
  import os
  import asyncio
  import collections
  from pathlib import Path
  from snakemake._version import get_versions
  from snakemake_interface_common.exceptions import WorkflowError
label_desc: Use image node_id 3 for calling a global function with example usage: parse_key_value_arg(arg, errmsg) and returns: key,  val