code: def _compute_feature(self, x, feat, feat_type):
      if feat_type == "onehot":
          return np.argmax(x[feat].to_numpy(), axis=1)
      else:
          return x[feat].values
  
imports: import pytest
  import joblib
  import os
  import json
  import numpy
  import pandas
  from itertools import product
  import matplotlib
  from abc import ABC, abstractmethod
  import warnings
label_desc: Use image node_id 2 for calling the DummyModel obj's underlying member method code with example usage: obj._compute_feature(x, feat, feat_type) and returns: np, x