symbol_key function supports dshape kwarg