code: def _h2o_accuracy(y_true, preds):
      return accuracy_score(
          y_true.as_data_frame().values, preds.as_data_frame().values
      )
  
file_path: h2o-3/h2o-py/tests/testdir_sklearn/pyunit_sklearn_classification_search_pipeline.py
imports: import importlib, inspect, os, sys
  import numpy
  from sklearn.datasets import make_classification
  from sklearn.decomposition import TruncatedSVD
  from sklearn.metrics import accuracy_score, make_scorer
  from sklearn.model_selection import train_test_split, RandomizedSearchCV
  from sklearn.pipeline import Pipeline
  import h2o
  from h2o.cross_validation import H2OKFold
  from h2o.sklearn import h2o_connection, H2OGradientBoostingEstimator, H2OGradientBoostingClassifier, H2OSVD
  from h2o.sklearn.wrapper import H2OConnectionMonitorMixin
  from tests import pyunit_utils, Namespace
label_desc: Use image node_id 2 for calling a global function with example usage: _h2o_accuracy(y_true, preds) and returns: accuracy_score