code: def _compare(
      a: set[str], b: set[str], *, excludes: set[str]
  ) -> tuple[set[str], set[str]]:
      only_in_a = {
          n
          for n in a
          if n not in b and n not in excludes and n[0] != "_"
      }
      only_in_b = {
          n
          for n in b
          if n not in a and n not in excludes and n[0] != "_"
      }
      return only_in_a, only_in_b
  
file_path: airflow/scripts/ci/pre_commit/pre_commit_base_operator_partial_arguments.py
imports: from __future__ import annotations
  import ast
  import itertools
  import pathlib
  import sys
  import typing
label_desc: Use image node_id 1 for calling a global function with example usage: _compare(a, b) and returns: only_in_a,  only_in_b