code: def _isin(arr: Tensor, values: List) -> Tensor:
      """Check if all values of an arr are in another array. Implementation of torch.isin to support pre 0.10 version.
  
      Args:
          arr: the torch tensor to check for availabilities
          values: the values to search the tensor for.
  
      Returns:
          a bool tensor of the same shape as :param:`arr` indicating for each
          position whether the element of the tensor is in :param:`values`
  
      """
      return (arr[..., None] == arr.new(values)).any(-1)
  
file_path: torchmetrics/src/torchmetrics/functional/detection/_panoptic_quality_common.py
imports: from typing import Collection, Dict, Iterator, List, Optional, Set, Tuple, cast
  import torch
  from torch import Tensor
  from torchmetrics.utilities import rank_zero_warn
label_desc: Use image node_id 8 for calling a global function with example usage: _isin(arr, values) and returns: unknown