code: def find_op(
      ops: Sequence[preprocess_spec.PreprocessOp],
      target_op_class: Union[
          Type[preprocess_spec.PreprocessOp],
          Tuple[Type[preprocess_spec.PreprocessOp], ...],
      ],
  ) -> preprocess_spec.PreprocessOp:
      """Find an op of the target class in a sequence of op instances."""
      result = [op for op in ops if isinstance(op, target_op_class)]
      if len(result) == 1:
          return result[0]
      elif len(result) > 1:
          raise ValueError(
              f"Found multiple candidate ops, please disambiguate: {result}"
          )
      else:
          raise ValueError(f"Op not found: {target_op_class}")
  
imports: from typing import Any, Dict, List, Optional, Sequence, Tuple, Type, Union
  from absl import logging
  from clu import preprocess_spec
  from flax import core
  import jax
  import jax.numpy
  import numpy
  from scenic.train_lib import train_utils
  import scipy
label_desc: Use image node_id 11 for calling a global function with example usage: find_op(ops, target_op_class) and returns: result