code: def split_tag_filters(tag_str: str) -> Tuple[Set[str], Set[str]]:
      """Split tag_filters string into include & exclude tags."""
      split_tags = tag_str.split(",") if tag_str else []
      return partition_targets(split_tags)
  
imports: from collections import defaultdict
  from dataclasses import dataclass
  from typing import Iterable, List, Optional, Set, Tuple
  import argparse
  import os
  import re
  import shlex
  import subprocess
  import sys
  import xml.etree.ElementTree
label_desc: Use image node_id 3 for calling a global function with example usage: split_tag_filters(tag_str) and returns: partition_targets