def METHOD_NAME(self):
    """Build Image with custom labels."""
    labels = {"apple": "red", "grape": "green"}
    self.docker.images.build(
        path="test/python/docker/build_labels",
        labels=labels,
        tag="labels",
        isolation="default",
    )
    image = self.docker.images.get("labels")
    self.assertEqual(image.labels["apple"], labels["apple"])
    self.assertEqual(image.labels["grape"], labels["grape"])