code: def is_bool(self, frame):
      source = "isinstance(__exprinfo_value, bool)"
      try:
          return frame.is_true(
              frame.eval(source, __exprinfo_value=self.result)
          )
      except passthroughex:
          raise
      except:
          return False
  
imports: import py
  import sys, inspect
  from compiler import parse, ast, pycodegen
  from py._code.assertion import BuiltinAssertionError, _format_explanation
  import types
label_desc: Use image node_id 1 for calling the CallFunc obj's underlying member method code with example usage: obj.is_bool(frame) and returns: frame, False