code: public SDVariable lastIndex(String name, SDVariable in, Condition condition, boolean keepDims, int... dimensions) {
          SDVariable ret = f().lastIndex(in, condition, keepDims, dimensions);
          return updateVariableNameAndReference(ret, name);
      }
docs: Last index reduction operation.<br>
  Returns a variable that contains the index of the last element that matches the specified condition (for each
  slice along the specified dimensions)<br>
  Note that if keepDims = true, the output variable has the same rank as the input variable,
  with the reduced dimensions having size 1. This can be useful for later broadcast operations (such as subtracting
  the mean along a dimension).<br>
  Example: if input has shape [a,b,c] and dimensions=[1] then output has shape:
  keepDims = true: [a,1,c]<br>
  keepDims = false: [a,c]
  
  @param name       Name of the output variable
  @param in         Input variable
  @param condition  Condition to check on input variable
  @param dimensions Dimensions to reduce over. If dimensions are not specified, full array reduction is performed
  @return Reduced array of rank (input rank - num dimensions)