Create partitionMethod.py