code: def CounterFactual(*args, **kwargs):
      """
      The class name `CounterFactual` is deprecated, please use `Counterfactual`.
      """
      # TODO: remove this function in an upcoming release
      warning_msg = "The class name `CounterFactual` is deprecated, please use `Counterfactual`."
      import warnings
  
      warnings.warn(warning_msg, FutureWarning)
  
      return Counterfactual(*args, **kwargs)
  
imports: import copy
  import logging
  from typing import Callable, Optional, Tuple, Union
  import numpy
  import tensorflow.compat.v1
  from alibi.api.defaults import DEFAULT_DATA_CF, DEFAULT_META_CF
  from alibi.api.interfaces import Explainer, Explanation
  from alibi.utils.gradients import num_grad_batch
label_desc: Use image node_id 2 for calling a global function with example usage: CounterFactual() and returns: Counterfactual