def METHOD_NAME(self, girderClient):  # noqa
    """Test get_contours_from_bin_mask()."""
    self._setup()
    original_iteminfo = girderClient.get(
        '/item', parameters={'text': 'TCGA-A2-A0YE-01Z-00-DX1'})[0]
    folder = girderClient.post(
        '/folder', data={
            'parentId': original_iteminfo['folderId'],
            'name': 'test-masks-annot-handler'
        })
    # copy the item
    sampleSlideItem = girderClient.post(
        '/item/%s/copy' % original_iteminfo['_id'], data={
            'name': 'TCGA-A2-A0YE-01Z.svs',
            'copyAnnotations': True,
            'folderId': folder['_id'],
        })
    sampleSlideId = str(sampleSlideItem['_id'])
    # get list of annotation documents
    annprops = {
        'X_OFFSET': self.X_OFFSET,
        'Y_OFFSET': self.Y_OFFSET,
        'opacity': 0.2,
        'lineWidth': 4.0,
    }
    annotation_docs = get_annotation_documents_from_contours(
        self.CONTOURS_DF.copy(), separate_docs_by_group=True,
        annots_per_doc=10, docnamePrefix='test', annprops=annprops,
        verbose=False,
        monitorPrefix=self.MASKNAME[:12] + ': annotation docs')
    # make sure its what we expect
    assert len(annotation_docs) == 8
    assert {j['name'] for j in annotation_docs} == {
        'test_blood_vessel-0',
        'test_exclude-0',
        'test_mostly_lymphocytic_infiltrate-0',
        'test_mostly_stroma-0',
        'test_mostly_tumor-0',
        'test_mostly_tumor-1',
        'test_normal_acinus_or_duct-0',
        'test_roi-0'
    }
    # deleting existing annotations in target slide (if any)
    delete_annotations_in_slide(girderClient, sampleSlideId)
    # post annotations to slide -- make sure it posts without errors
    resp = girderClient.post(
        '/annotation?itemId=' + sampleSlideId,
        json=annotation_docs[0])
    assert 'annotation' in resp.keys()