class_docstr: Class which wraps a statsmodels estimation Results class and steps in to
  reattach metadata to results (if available)
docstr: Save a pickle of this instance.
  
  Parameters
  ----------
  fname : {str, handle}
      Either a filename or a valid file handle.
  remove_data : bool
      If False (default), then the instance is pickled without changes.
      If True, then all arrays with length nobs are set to None before
      pickling. See the remove_data method.
      In some cases not all arrays will be set to None.
docstr_tok: ["Save","a","pickle","of","this","instance",".","Parameters","--","--","--","--","--","fname",":","{","str",",","handle","}","Either","a","filename","or","a","valid","file","handle",".","remove_data",":","bool","If","False","(","default",")",",","then","the","instance","is","pickled","without","changes",".","If","True",",","then","all","arrays","with","length","nobs","are","set","to","None","before","pickling",".","See","the","remove_data","method",".","In","some","cases","not","all","arrays","will","be","set","to","None","."]
code: def save(self, fname, remove_data=False):
      """
      Save a pickle of this instance.
  
      Parameters
      ----------
      fname : {str, handle}
          Either a filename or a valid file handle.
      remove_data : bool
          If False (default), then the instance is pickled without changes.
          If True, then all arrays with length nobs are set to None before
          pickling. See the remove_data method.
          In some cases not all arrays will be set to None.
      """
      from statsmodels.iolib.smpickle import save_pickle
  
      if remove_data:
          self.remove_data()
  
      save_pickle(self, fname)
  
file_path: statsmodels/statsmodels/base/wrapper.py
imports: import functools
  import inspect
  from textwrap import dedent
label_desc: Use image node_id 6 for calling the ResultsWrapper obj's underlying member method code with example usage: obj.save(fname, remove_data) without return types