def create_user_partition_json(partition_id, name, description, groups, scheme='random'):
 return UserPartition(partition_id, name, description, groups, MockUserPartitionScheme(scheme)).to_json()

def create_user_partition_json ( partition_id , name , description , groups , scheme = 'random' ) : return UserPartition ( partition_id , name , description , groups , MockUserPartitionScheme ( scheme ) ) . to_json ( )
helper method to create user partition json .