code: def build_sam_vit_b(checkpoint=None):
      return _build_sam(
          encoder_embed_dim=768,
          encoder_depth=12,
          encoder_num_heads=12,
          encoder_global_attn_indexes=[2, 5, 8, 11],
          checkpoint=checkpoint,
      )
  
file_path: PaddleSeg/contrib/SegmentAnything/segment_anything/build_sam.py
imports: import paddle
  from functools import partial
  from paddleseg.utils import load_entire_model
  from .modeling import ImageEncoderViT, MaskDecoder, PromptEncoder, Sam, TwoWayTransformer, TinyViT
label_desc: Use image node_id 3 for calling a global function with example usage: build_sam_vit_b(checkpoint) and returns: _build_sam