code: def main() -> None:
      # Read request message from stdin
      data = sys.stdin.buffer.read()
  
      # Parse request
      request = plugin.CodeGeneratorRequest()
      request.ParseFromString(data)
  
      # Create response
      response = plugin.CodeGeneratorResponse()
  
      # Generate mypy
      generate_mypy_stubs(Descriptors(request), response)
  
      # Serialise response message
      output = response.SerializeToString()
  
      # Write to stdout
      sys.stdout.buffer.write(output)
  
file_path: onnx/tools/protoc-gen-mypy.py
imports: import sys
  from collections import defaultdict
  from contextlib import contextmanager
  from typing import Any, Callable, Dict, Generator, List, Optional, Set, cast
label_desc: Use image node_id 3 for calling a global function with example usage: main() without return types