code: def _from_bunch(bunch: Bunch, ctype: ColumnTypes) -> TXYDataset:
      x = bunch.data.astype(np.float64)
      y_dtype = np.float64 if ctype == ColumnTypes.NUMERICAL else int
      y = bunch.target.reshape([-1, 1]).astype(y_dtype)
      return x, y
  
file_path: carefree-learn/cflearn/data/ml/datasets.py
imports: import numpy
  from typing import Tuple
  from ..blocks import ColumnTypes
label_desc: Use image node_id 1 for calling a global function with example usage: _from_bunch(bunch, ctype) and returns: x,  y