code: static Partition createRangePartitionWithSubPartition(
              SqlgGraph sqlgGraph,
              AbstractLabel abstractLabel,
              String name,
              String from,
              String to,
              PartitionType partitionType,
              String partitionExpression) {
  
          Preconditions.checkArgument(!abstractLabel.getSchema().isSqlgSchema(), "createRangePartitionWithSubPartition may not be called for \"%s\"", Topology.SQLG_SCHEMA);
          Preconditions.checkState(abstractLabel.isRangePartition());
          Partition partition = new Partition(sqlgGraph, abstractLabel, name, from, to, partitionType, partitionExpression);
          partition.createRangePartitionOnDb();
          if (abstractLabel instanceof VertexLabel) {
              TopologyManager.addVertexLabelPartition(
                      sqlgGraph,
                      abstractLabel.getSchema().getName(),
                      abstractLabel.getName(),
                      name,
                      from,
                      to,
                      partitionType,
                      partitionExpression);
          } else {
              TopologyManager.addEdgeLabelPartition(sqlgGraph, abstractLabel, name, from, to, partitionType, partitionExpression);
          }
          partition.committed = false;
          return partition;
      }
docs: Create a range partition on an {@link AbstractLabel} that will itself be sub-partitioned
  
  @param sqlgGraph
  @param abstractLabel
  @param name
  @param from
  @param to
  @param partitionType
  @param partitionExpression
  @return