class_docstr: Writes a single pyi file
class_docstr_tok: ["Writes","a","single","pyi","file"]
code: def __init__(
      self,
      fd: d.FileDescriptorProto,
      descriptors: Descriptors,
      readable_stubs: bool,
      relax_strict_optional_primitives: bool,
      grpc: bool,
  ) -> None:
      self.fd = fd
      self.descriptors = descriptors
      self.readable_stubs = readable_stubs
      self.relax_strict_optional_primitives = (
          relax_strict_optional_primitives
      )
      self.grpc = grpc
      self.lines: List[str] = []
      self.indent = ""
  
      # Set of {x}, where {x} corresponds to to `import {x}`
      self.imports: Set[str] = set()
      # dictionary of x->(y,z) for `from {x} import {y} as {z}`
      # if {z} is None, then it shortens to `from {x} import {y}`
      self.from_imports: Dict[
          str, Set[Tuple[str, str | None]]
      ] = defaultdict(set)
      self.typing_extensions_min: Optional[Tuple[int, int]] = None
  
      # Comments
      self.source_code_info_by_scl = {
          tuple(location.path): location
          for location in fd.source_code_info.location
      }
  
imports: from __future__ import annotations
  import sys
  from collections import defaultdict
  from contextlib import contextmanager
  from typing import Any, Callable, Dict, Iterable, Iterator, List, Optional, Set, Sequence, Tuple
  import google.protobuf.descriptor_pb2
  from google.protobuf.compiler import plugin_pb2
  from google.protobuf.internal.containers import RepeatedCompositeFieldContainer
  from google.protobuf.internal.well_known_types import WKTBASES
  from .None import extensions_pb2
label_desc: Use image node_id 1 to create a new PkgWriter object from inherited base classes: object with example: obj = PkgWriter(fd, descriptors, readable_stubs, relax_strict_optional_primitives, grpc)