code: def _init_coefs(X, method="corrcoef"):
      if method == "corrcoef":
          return np.corrcoef(X, rowvar=False), 1.0
      elif method == "cov":
          init_cov = np.cov(X, rowvar=False)
          return init_cov, np.max(np.abs(np.triu(init_cov)))
      elif method == "spearman":
          return spearman_correlation(X, rowvar=False), 1.0
      elif method == "kendalltau":
          return kendalltau_correlation(X, rowvar=False), 1.0
      elif callable(method):
          return method(X)
      else:
          raise ValueError(
              (
                  "initialize_method must be 'corrcoef' or 'cov', "
                  "passed '{}' .".format(method)
              )
          )
  
file_path: skggm/inverse_covariance/inverse_covariance.py
imports: from __future__ import absolute_import
  import numpy
  from sklearn.base import BaseEstimator
  from .None import metrics
  from .rank_correlation import spearman_correlation, kendalltau_correlation
label_desc: Use image node_id 1 for calling a global function with example usage: _init_coefs(X, method) and returns: np,  int, init_cov,  np, spearman_correlation,  int, kendalltau_correlation,  int, method