code: def _find_inner_mh_results(results):
      if hasattr(results, "proposed_results") and hasattr(
          results, "accepted_results"
      ):
          return results
      if hasattr(results, "inner_results"):
          return _find_inner_mh_results(results.inner_results)
      raise TypeError("Cannot find MH results.")
  
file_path: probability/tensorflow_probability/python/mcmc/sample_annealed_importance.py
imports: import collections
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import samplers
  from tensorflow_probability.python.mcmc.internal import util
label_desc: Use image node_id 1 for calling a global function with example usage: _find_inner_mh_results(results) and returns: results, _find_inner_mh_results