class_docstr: Constructs a SAM processor which wraps a SAM image processor and an 2D points & Bounding boxes processor into a
  single processor.
  
  [`SamProcessor`] offers all the functionalities of [`SamImageProcessor`]. See the docstring of
  [`~SamImageProcessor.__call__`] for more information.
  
  Args:
      image_processor (`SamImageProcessor`):
          An instance of [`SamImageProcessor`]. The image processor is a required input.
code: def post_process_masks(self, *args, **kwargs):
      return self.image_processor.post_process_masks(*args, **kwargs)
  
file_path: transformers/src/transformers/models/sam/processing_sam.py
imports: from copy import deepcopy
  from typing import Optional, Union
  import numpy
  from ...processing_utils import ProcessorMixin
  from ...tokenization_utils_base import BatchEncoding
  from ...utils import TensorType, is_tf_available, is_torch_available
label_desc: Use image node_id 8 for calling the SamProcessor obj's underlying member method code with example usage: obj.post_process_masks() and returns: self