def combined_shape()

in safe_rl/pg/utils.py [0:0]


def combined_shape(length, shape=None):
    if shape is None:
        return (length,)
    return (length, shape) if np.isscalar(shape) else (length, *shape)