code: def _initiate_exp_object(
      self, tf_exp_object, sample_adultincome_query
  ):
      self.exp = tf_exp_object  # explainer object
      # initialize required params for CF computations
      self.exp.do_cf_initializations(
          total_CFs=4, algorithm="DiverseCF", features_to_vary="all"
      )
  
      # prepare query isntance for CF optimization
      # query_instance = self.exp.data_interface.prepare_query_instance(
      #     query_instance=sample_adultincome_query, encoding='one-hot')
      # self.query_instance = np.array([query_instance.iloc[0].values], dtype=np.float32)
      self.query_instance = (
          self.exp.data_interface.get_ohe_min_max_normalized_data(
              sample_adultincome_query
          ).values
      )
  
      init_arrs = self.exp.initialize_CFs(
          self.query_instance, init_near_query_instance=True
      )  # initialize CFs
      self.desired_class = 1  # desired class is 1
  
      # setting random feature weights
      np.random.seed(42)
      weights = np.random.rand(
          len(self.exp.data_interface.ohe_encoded_feature_names)
      )
      weights = np.array([weights], dtype=np.float32)
      if tf.__version__[0] == "1":
          for i in range(4):
              self.exp.dice_sess.run(
                  self.exp.cf_assign[i],
                  feed_dict={self.exp.cf_init: init_arrs[i]},
              )
          self.exp.feature_weights = tf.Variable(
              self.exp.minx, dtype=tf.float32
          )
          self.exp.dice_sess.run(
              tf.assign(self.exp.feature_weights, weights)
          )
      else:
          self.exp.feature_weights_list = tf.constant(
              [weights], dtype=tf.float32
          )
  
file_path: DiCE/tests/test_dice_interface/test_dice_tensorflow.py
imports: import numpy
  import pytest
  import dice_ml
  from dice_ml.counterfactual_explanations import CounterfactualExplanations
  from dice_ml.utils import helpers
label_desc: Use image node_id 1 for calling the TestDiceTensorFlowMethods obj's underlying member method code with example usage: obj._initiate_exp_object(tf_exp_object, sample_adultincome_query) without return types