code: def estimate_geometric_median(X: np.ndarray) -> np.ndarray:
      def distance_function(x_input: np.ndarray) -> np.ndarray:
          return np.sum(np.sqrt(np.sum((x_input - X) ** 2, axis=1)))
  
      return minimize(
          distance_function, np.sum(X, axis=0) / X.shape[0]
      ).x
  
file_path: dowhy/dowhy/gcm/confidence_intervals.py
imports: from typing import Any, Callable, Dict, List, Tuple, Union
  import numpy
  from joblib import Parallel, delayed
  from scipy.optimize import minimize
  from tqdm import tqdm
  from dowhy.gcm import config
  from dowhy.gcm.util.general import set_random_seed, shape_into_2d
label_desc: Use image node_id 1 for calling a global function with example usage: estimate_geometric_median(X) and returns: minimize, np