code: def _assume_finite(cls):
      assume_finite = options.learn.assume_finite
      if assume_finite is None and get_sklearn_config is not None:
          # get config from scikit-learn
          assume_finite = get_sklearn_config()["assume_finite"]
      if assume_finite is None:  # pragma: no cover
          assume_finite = False
  
      return assume_finite
  
imports: import numpy
  from ...None import opcodes
  from ...None import tensor
  from ...core import ENTITY_TYPE, get_output_types, recursive_tile
  from ...core.operand import OperandStage
  from ...config import options
  from ...serialization.serializables import KeyField, StringField, BoolField, DataTypeField
  from ...tensor.core import TensorOrder, TENSOR_CHUNK_TYPE
  from ...tensor.array_utils import as_same_device, device, issparse, get_array_module
  from ...utils import ceildiv
  from ..operands import LearnOperand, LearnOperandMixin, OutputType
label_desc: Use image node_id 9 for calling the AssertAllFinite obj's underlying member method code with example usage: obj._assume_finite(cls) and returns: assume_finite