@Override
          public void run2() throws CacheException {

            Cache cache = getCache();
            Region partitionedregion = null;
            AttributesFactory attr = new AttributesFactory();
            attr.setValueConstraint(constraint);
            if (isPersistent) {
              DiskStore ds = cache.findDiskStore(diskName);
              if (ds == null) {
                // ds = cache.createDiskStoreFactory().setDiskDirs(getDiskDirs())
                ds = cache.createDiskStoreFactory()
                    .setDiskDirs(
                        JUnit4CacheTestCase.getDiskDirs())
                    .create(diskName);
              }
              attr.setDataPolicy(DataPolicy.PERSISTENT_PARTITION);
              attr.setDiskStoreName(diskName);
            } else {
              attr.setDataPolicy(DataPolicy.PARTITION);
              attr.setDiskStoreName(null);
            }

            PartitionAttributesFactory paf = new PartitionAttributesFactory();
            paf.setRedundantCopies(redundancy);
            attr.setPartitionAttributes(paf.create());

            // skip parent region creation
            // partitionedregion = cache.createRegion(regionName, attr.create());

            // child region
            attr.setValueConstraint(constraint);
            paf.setColocatedWith(regionName);
            attr.setPartitionAttributes(paf.create());
            Region childRegion = cache.createRegion(childRegionName, attr.create());
          }
This function creates the parent region of colocated pair of PR's given the scope & the
redundancy parameters for the parent *

@return cacheSerializable object
geode-core/src/distributedTest/java/org/apache/geode/cache/query/partitioned/PRQueryDUnitHelper.java