Metrics:
Total lines of code: 1435
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-Iterative-Mixer/samplers/__init__.py
Line number: 644
More info: https://bandit.readthedocs.io/en/1.7.9/plugins/b101_assert_used.html
640	    def blend(self, l1: torch.Tensor, l2: torch.Tensor, weight: float)  -> torch.Tensor:
641	        dims = l1.shape
642	
643	        # We need at least two dimensions (batch plus whatever else)
644	        assert len(dims) >= 2
645	
646	        # Reshape to flatten everything but the batch dimension.
647	        l1 = l1.reshape(dims[0], -1)
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-Iterative-Mixer/utils/__init__.py
Line number: 77
More info: https://bandit.readthedocs.io/en/1.7.9/plugins/b101_assert_used.html
73	    """
74	    dims = low.shape
75	
76	    # We need at least two dimensions (batch plus whatever else)
77	    assert len(dims) >= 2
78	
79	    # Flatten to batches.
80	    low = low.reshape(dims[0], -1)