code: def normalize_importance_weights(
      importance_weights, whether_self_normalize_importance_weights
  ):
      if whether_self_normalize_importance_weights:
          sum_importance_weights = np.sum(importance_weights, axis=0)
          where_zeros = np.where(sum_importance_weights == 0.0)[0]
          sum_importance_weights[where_zeros] = len(importance_weights)
          importance_weights[:, where_zeros] = 1.0
          importance_weights /= sum_importance_weights
          return importance_weights
      else:
          importance_weights /= importance_weights.shape[0]
          return importance_weights
  
file_path: ReAgent/reagent/evaluation/weighted_sequential_doubly_robust_estimator.py
imports: import itertools
  import logging
  import numpy
  import scipy
  from reagent.evaluation.cpe import CpeEstimate
  from reagent.evaluation.evaluation_data_page import EvaluationDataPage
label_desc: Use image node_id 5 for calling the WeightedSequentialDoublyRobustEstimator obj's underlying member method code with example usage: obj.normalize_importance_weights(importance_weights, whether__normalize_importance_weights) and returns: importance_weights, importance_weights