Metrics:
Total lines of code: 815
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-ELLA/model.py
Line number: 225
More info: https://bandit.readthedocs.io/en/1.7.9/plugins/b101_assert_used.html
221	                      These may be fractional.
222	    :param embedding_dim: the dimension of the output. :param max_period: controls the minimum frequency of the
223	    embeddings. :return: an [N x dim] Tensor of positional embeddings.
224	    """
225	    assert len(timesteps.shape) == 1, "Timesteps should be a 1d-array"
226	
227	    half_dim = embedding_dim // 2
228	    exponent = -math.log(max_period) * torch.arange(