code: def is_primitive(btype):
      """
      Is the indicated builtin type a primitive?
      """
      return (
          btype is types_bool
          or btype is types_str
          or is_float(btype)
          or is_int(btype)
      )
  
imports: from .type_bool import bool
  from .type_double import is_float, fp16, fp32, fp64
  from .type_list import is_list
  from .type_int import is_int, int8, int16, int32, int64, uint8, uint16, uint32, uint64
  from .type_str import str
  from .type_unknown import unknown
  import numpy
  import sympy
  import six
  from .get_type_info import get_type_info
label_desc: Use image node_id 6 for calling a global function with example usage: is_primitive(btype) and returns: unknown