code: def observable_stopping_condition(
      obs: qml.operation.Operator,
  ) -> bool:
      """Specifies whether or not an observable is accepted by DefaultQubit."""
      return obs.name in observables
  
imports: from dataclasses import replace
  from functools import partial
  from numbers import Number
  from typing import Union, Callable, Tuple, Optional, Sequence
  import concurrent.futures
  import inspect
  import logging
  import numpy
  import pennylane
  from pennylane.tape import QuantumTape, QuantumScript
  from pennylane.typing import Result, ResultBatch
  from pennylane.transforms import convert_to_numpy_parameters
  from pennylane.transforms.core import TransformProgram
  from .None import Device
  from .preprocess import decompose, validate_observables, validate_measurements, validate_multiprocessing_workers, validate_device_wires, validate_adjoint_trainable_params, no_sampling
  from .execution_config import ExecutionConfig, DefaultExecutionConfig
  from .qubit.simulate import simulate, get_final_state, measure_final_state
  from .qubit.sampling import get_num_shots_and_executions
  from .qubit.adjoint_jacobian import adjoint_jacobian, adjoint_vjp, adjoint_jvp
label_desc: Use image node_id 1 for calling a global function with example usage: observable_stopping_condition(obs) and returns: unknown