Indices is not defined

I am trying to work with indices but it seems indices is depreciated in latest version. It was working in older version for example:

  i,j,k,l,m,n,o,p = indices(8)
  delta = Identity(2)
   eps = as_tensor(1.0/2.0*(u[i].dx(j) + u[j].dx(i)),(i,j) )

is there any work around

Try adding:

from ufl import indices