docs: public static DataType typeFromTensorType(byte type, int elementSize) {
          if(type == Type.FloatingPoint) {
              return DataType.FLOAT;
          }
          else if(type == Type.Decimal) {
              return DataType.DOUBLE;
          }
          else if(type == Type.Int) {
              if(elementSize == 4) {
                  return DataType.INT;
              }
              else if(elementSize == 8) {
                  return DataType.LONG;
              }
          }
          else {
              throw new IllegalArgumentException("Only valid types are Type.Decimal and Type.Int");
          }
  
          throw new IllegalArgumentException("Unable to determine data type");
      }