code: def is_scalar(fd: d.FileDescriptorProto) -> bool:
      return not (
          fd.type
          == d.FieldDescriptorProto.TYPE_MESSAGE  # noqa: PLR1714
          or fd.type == d.FieldDescriptorProto.TYPE_GROUP
      )
  
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 1 for calling a global function with example usage: is_scalar(fd) and returns: unknown