code: def joint_clustering(self, *args):
      """Return a joint clustering that merges the clusterings of all the submaskers."""
  
      single_clustering = []
      arg_pos = 0
      for i, masker in enumerate(self.maskers):
          masker_args = args[arg_pos : arg_pos + self.arg_counts[i]]
          if callable(masker.clustering):
              clustering = masker.clustering(*masker_args)
          else:
              clustering = masker.clustering
  
          if len(single_clustering) == 0:
              single_clustering = clustering
          elif len(clustering) != 0:
              raise NotImplementedError(
                  "Joining two non-trivial clusterings is not yet implemented in the Composite masker!"
              )
      return single_clustering
  
file_path: shap/shap/maskers/_composite.py
imports: import types
  from ..utils._exceptions import InvalidMaskerError
  from ._masker import Masker
label_desc: Use image node_id 1 for calling a global function with example usage: joint_clustering() and returns: single_clustering