code: public static Op.Type getTypeFromByte(byte type) {
          switch (type) {
              case OpType.SCALAR:
                  return Op.Type.SCALAR;
              case OpType.SCALAR_BOOL:
                  return Op.Type.SCALAR_BOOL;
              case OpType.BROADCAST:
                  return Op.Type.BROADCAST;
              case OpType.BROADCAST_BOOL:
                  return Op.Type.BROADCAST_BOOL;
              case OpType.TRANSFORM_BOOL:
                  return Op.Type.TRANSFORM_BOOL;
              case OpType.TRANSFORM_FLOAT:
                  return Op.Type.TRANSFORM_FLOAT;
              case OpType.TRANSFORM_SAME:
                  return Op.Type.TRANSFORM_SAME;
              case OpType.TRANSFORM_ANY:
                  return Op.Type.TRANSFORM_ANY;
              case OpType.TRANSFORM_STRICT:
                  return Op.Type.TRANSFORM_STRICT;
              case OpType.REDUCE_BOOL:
                  return Op.Type.REDUCE_BOOL;
              case OpType.REDUCE_LONG:
                  return Op.Type.REDUCE_LONG;
              case OpType.REDUCE_FLOAT:
                  return Op.Type.REDUCE_FLOAT;
              case OpType.REDUCE_SAME:
                  return Op.Type.REDUCE_SAME;
              case OpType.REDUCE_3:
                  return Op.Type.REDUCE3;
              case OpType.INDEX_REDUCE:
                  return Op.Type.INDEXREDUCE;
              case OpType.RANDOM:
                  return Op.Type.RANDOM;
              case OpType.LOGIC:
                  return Op.Type.META;
              case OpType.CUSTOM:
                  return Op.Type.CUSTOM;
              case OpType.PAIRWISE:
                  return Op.Type.PAIRWISE;
              case OpType.PAIRWISE_BOOL:
                  return Op.Type.PAIRWISE_BOOL;
              case OpType.SUMMARYSTATS:
                  return Op.Type.SUMMARYSTATS;
              default:
                  throw new UnsupportedOperationException("Unknown op type passed in: " + type);
          }
      }
docs: This method converts enums for Op.Type
  
  @param type Byte representing the op type
  @return Op type