code: def __toarray(X):
      """Converts DataFrames to numpy arrays."""
      if hasattr(X, "values"):
          X = X.values
      return X
  
imports: import hashlib
  import os
  import time
  import numpy
  import sklearn
  from ..None import __version__
  from .None import measures, methods
label_desc: Use image node_id 42 for calling a global function with example usage: __toarray(X) and returns: X