code: def parse_tags(s):
      """
      >>> parse_tags('k1=v1, k2=v2')
      [('k1', 'v1'), ('k2', 'v2')]
      """
      s = s.strip()
      if not s:
          return []
  
      tags = []
      for kv in s.split(","):
          if "=" not in kv:
              raise ValueError(kv)
          key, value = [v.strip() for v in kv.split("=", 1)]
          if not key or not value:
              raise ValueError(kv)
          tags.append((key, value))
      return tags
  
imports: import logging
  from abc import ABC, abstractmethod
  from os import environ
  import attr
  from ..backend_api import Session
  from ..backend_api.session.defs import ENV_AUTH_TOKEN
label_desc: Use image node_id 1 for calling a global function with example usage: parse_tags(s) and returns: tags, list