code: def joint_accuracy(
      logits, one_hot_target, class_splits, weights=None
  ):
      """Compute accuracy where both targets must be predicted correctly."""
  
      pairwise_logits, pairwise_labels = get_joint_logits_labels(
          logits, one_hot_target, class_splits
      )
      return base_model_utils.weighted_correctly_classified(
          pairwise_logits, pairwise_labels, weights
      )
  
imports: from typing import Any, Optional, Tuple
  from absl import logging
  import flax
  from flax.linen import linear
  from flax.training import common_utils
  import jax
  import jax.numpy
  import ml_collections
  import numpy
  from scenic.common_lib import debug_utils
  from scenic.model_lib.base_models import model_utils
  import scipy
label_desc: Use image node_id 14 for calling a global function with example usage: joint_accuracy(logits, one_hot_target, class_splits, weights) and returns: base_model_utils