code: def get_selected_python_frame(cls):
          '''Try to obtain the Frame for the python code in the selected frame,
          or None'''
          frame = cls.get_selected_frame()
  
          while frame:
              if frame.is_evalframeex():
                  return frame
              frame = frame.older()
  
          # Not found:
          return Nonf get_selected_python_frame(cls):
          '''Try to obtain the Frame for the python code in the selected frame,
          or None'''
          frame = cls.get_selected_frame()
  
          while frame:
              if frame.is_evalframeex():
                  return frame
              frame = frame.older()
  
          # Not found:
          return None
docs: Try to obtain the Frame for the python code in the selected frame,
          or None