parameters: (x, ndim, axis=0)
return_statement: return F.reshape(x, shape)
docstring: Expand x to ndim from axis, which can be 0 or -1.
docstring_summary: Expand x to ndim from axis, which can be 0 or -1.
docstring_tokens: Expand x to ndim from axis which can be 0 or - 1 .
function: def _expand(x, ndim, axis=0):
      """Expand x to ndim from axis, which can be 0 or -1."""
      shape = _add_unit_axes(F.shape(x), ndim, axis == -1)
      return F.reshape(x, shape)
function_tokens: def _expand ( x , ndim , axis = 0 ) : shape = _add_unit_axes ( F . shape ( x ) , ndim , axis == - 1 ) return F . reshape ( x , shape )