Metrics:
Total lines of code: 207
Total lines skipped (#nosec): 0

assert_used: Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Test ID: B101
Severity: LOW
Confidence: HIGH
CWE: CWE-703
File: /custom_nodes/comfyui-lama-remover/utils.py
Line number: 78
More info: https://bandit.readthedocs.io/en/1.7.9/plugins/b101_assert_used.html
74	    elif img.ndim == 2:
75	        img = img[np.newaxis, ...]
76	        print(f"Prepare the imput masks")
77	
78	    assert img.ndim == 3
79	
80	    try:
81	        img = img.astype(np.float32) / 255