code: public static boolean isRowVectorShape(IntBuffer shapeInfo) {
          int rank = Shape.rank(shapeInfo);
          IntBuffer shape = Shape.shapeOf(shapeInfo);
          return (rank == 2 && shape.get(0) == 1) || rank == 1;
  
      }
docs: Returns true if the given shape is of length 1
  or provided the shape length is 2:
  element 0 is 1
  @param shapeInfo the shape info to check
  @return true if the above conditions hold,false otherwise