def slice_(slice: str=Query(None, regex='^[0-9,:]*$')):
    'Specify and parse a block index parameter.'
    import numpy
    return tuple([eval(f'numpy.s_[{dim!s}]', {'numpy': numpy}) for dim in (slice or '').split(',') if dim])
Specify and parse a block index parameter.
def slice_(slice: str=Query(None, regex='^[0-9,:]*$')):
    
    import numpy
    return tuple([eval(f'numpy.s_[{dim!s}]', {'numpy': numpy}) for dim in (slice or ).split(',') if dim])