def _valid_dtypes_for_shape(shape, dtypes):
    if (shape is jtu.PYTHON_SCALAR_SHAPE):
        return [t for t in dtypes if (t in python_scalar_dtypes)]
    return dtypes
def _valid_dtypes_for_shape(shape, dtypes):
    if (shape is jtu.PYTHON_SCALAR_SHAPE):
        return [t for t in dtypes if (t in python_scalar_dtypes)]
    return dtypes