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