docs: def get_stub(source, generic=False):
      """Get the stub code for a source code.
  
      :sig: (str, bool) -> str
      :param source: Source code to generate the stub for.
      :param generic: Whether to produce generic stubs.
      :return: Generated stub code.
      """
      generator = StubGenerator(source, generic=generic)
      stub = generator.generate_stub()
      return stub