code: def _get_predicted(self, obj):
      if isinstance(obj, np.ndarray):
          return obj
      elif isinstance(obj, pd.Series):
          return obj.values
      elif hasattr(obj, "predicted_values"):
          return obj.predicted_values
      else:
          raise ValueError(
              "cannot obtain predicted values from %s" % obj.__class__
          )
  
imports: import pandas
  import numpy
  import patsy
  from statsmodels.base.model import LikelihoodModelResults
  from statsmodels.regression.linear_model import OLS
  from collections import defaultdict
label_desc: Use image node_id 21 for calling the MICEData obj's underlying member method code with example usage: obj._get_predicted(obj) and returns: obj, obj, obj