code: def ask(self,
              patch_stdout: bool = False,
              kbi_msg: str = DEFAULT_KBI_MESSAGE) -> Any:
          
  
          if self.should_skip_question:
              return self.default
  
          try:
              return self.unsafe_ask(patch_stdout)
          except KeyboardInterrupt:
              print("\n{}\n".format(kbi_msg))
              return None
docs: Ask the question synchronously and return user response.