code: public SDVariable reverse(String name, SDVariable x, int... dimensions) {
          SDVariable ret = f().reverse(x, dimensions);
          return updateVariableNameAndReference(ret, name);
      }
docs: Reverse the values of an array for the specified dimensions<br>
  If input is:<br>
  [ 1, 2, 3]<br>
  [ 4, 5, 6]<br>
  then<br>
  reverse(in, 0):<br>
  [3, 2, 1]<br>
  [6, 5, 4]<br>
  reverse(in, 0):<br>
  [4, 5, 6]<br>
  [1, 2 3]<br>
  
  @param x          Input variable
  @param dimensions Dimensions
  @return Output variable