code: def handle_missing(endog, exog=None, missing="none", **kwargs):
      klass = handle_data_class_factory(endog, exog)
      if missing == "none":
          ret_dict = dict(endog=endog, exog=exog)
          ret_dict.update(kwargs)
          return ret_dict, None
      return klass.handle_missing(
          endog, exog, missing=missing, **kwargs
      )
  
imports: from __future__ import annotations
  from statsmodels.compat.python import lmap
  from functools import reduce
  import numpy
  from pandas import DataFrame, Series, isnull, MultiIndex
  import statsmodels.tools.data
  from statsmodels.tools.decorators import cache_readonly, cache_writable
  from statsmodels.tools.sm_exceptions import MissingDataError
label_desc: Use image node_id 6 for calling a global function with example usage: handle_missing(endog, exog, missing) and returns: klass, ret_dict,  None