code: def model(opt):
      knr = KNeighborsClassifier(n_neighbors=opt["n_neighbors"])
      scores = cross_val_score(knr, X, y, cv=5)
      score = scores.mean()
  
      return score
  
imports: from sklearn.datasets import load_iris
  from sklearn.neighbors import KNeighborsClassifier
  from sklearn.model_selection import cross_val_score
  from hyperactive import Hyperactive
  from hyperactive.optimizers import RandomAnnealingOptimizer
label_desc: Use image node_id 1 for calling a global function with example usage: model(opt) and returns: score