code: def bicluster_ncut(i):
      rows, cols = cocluster.get_indices(i)
      if not (np.any(rows) and np.any(cols)):
          import sys
  
          return sys.float_info.max
      row_complement = np.nonzero(np.logical_not(cocluster.rows_[i]))[0]
      col_complement = np.nonzero(
          np.logical_not(cocluster.columns_[i])
      )[0]
      # Note: the following is identical to X[rows[:, np.newaxis],
      # cols].sum() but much faster in scipy <= 0.16
      weight = X[rows][:, cols].sum()
      cut = (
          X[row_complement][:, cols].sum()
          + X[rows][:, col_complement].sum()
      )
      return cut / weight
  
file_path: scikit-learn/examples/bicluster/plot_bicluster_newsgroups.py
imports: import operator
  from collections import defaultdict
  from time import time
  import numpy
  from sklearn.cluster import MiniBatchKMeans, SpectralCoclustering
  from sklearn.datasets import fetch_20newsgroups
  from sklearn.feature_extraction.text import TfidfVectorizer
  from sklearn.metrics.cluster import v_measure_score
label_desc: Use image node_id 2 for calling a global function with example usage: bicluster_ncut(i) and returns: unknown, sys