code: def _convert_to_numeric(*args) -> List[np.ndarray]:
      result = []
      for X in args:
          X = np.array(X)
          for col in range(X.shape[1]):
              if isinstance(X[0, col], bool):
                  X[:, col] = X[:, col].astype(str)
  
          result.append(
              auto_apply_encoders(X, auto_fit_encoders(X)).astype(float)
          )
  
      return result
  
file_path: dowhy/dowhy/gcm/independence_test/kernel.py
imports: from typing import Callable, List, Optional, Union
  import numpy
  import scipy
  from causallearn.utils.KCI.KCI import KCI_CInd, KCI_UInd
  from joblib import Parallel, delayed
  from sklearn.preprocessing import scale
  import dowhy.gcm.config
  from dowhy.gcm.independence_test.kernel_operation import approximate_rbf_kernel_features
  from dowhy.gcm.stats import quantile_based_fwer
  from dowhy.gcm.util.general import auto_apply_encoders, auto_fit_encoders, set_random_seed, shape_into_2d
label_desc: Use image node_id 7 for calling a global function with example usage: _convert_to_numeric() and returns: result