Repository: albumentations-team/albumentations

Issue:
No disable_shapes_check method of Compose class
## 🐛 Bug

The error message says "You can disable shapes check by calling disable_shapes_check method of Compose class.":

https://github.com/albumentations-team/albumentations/blob/57988c2091b72e67f37de0332b75d1772d28c651/albumentations/core/composition.py#L285-L290

But there's no ```disable_shapes_check``` method of Compose class.

Discussion:

Patch:
diff --git a/albumentations/core/composition.py b/albumentations/core/composition.py
index 54f596c..dfc5e86 100644
--- a/albumentations/core/composition.py
+++ b/albumentations/core/composition.py
@@ -285,7 +285,7 @@ class Compose(BaseCompose):
         if self.is_check_shapes and shapes and shapes.count(shapes[0]) != len(shapes):
             raise ValueError(
                 "Height and Width of image, mask or masks should be equal. You can disable shapes check "
-                "by calling disable_shapes_check method of Compose class (do it only if you are sure "
+                "by setting a parameter is_check_shapes=False of Compose class (do it only if you are sure "
                 "about your data consistency)."
             )
 


Test patch:
diff --git a/tests/test_core.py b/tests/test_core.py
index 7fbcff6..5297304 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -429,7 +429,7 @@ def test_compose_image_mask_equal_size(targets):
 
     assert str(exc_info.value).startswith(
         "Height and Width of image, mask or masks should be equal. "
-        "You can disable shapes check by calling disable_shapes_check method "
+        "You can disable shapes check by setting a parameter is_check_shapes=False "
         "of Compose class (do it only if you are sure about your data consistency)."
     )
     # test after disabling shapes check