def validate_partition_id(self, constraint, partition_id):
    self.validate_project_id(constraint, partition_id.project_id)
    self.validate_partition_id_dimension(constraint,
                                         partition_id.namespace_id,
                                         'namespace')
Validates a partition ID.
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/datastore/cloud_datastore_validator.py/_EntityValidator.validate_partition_id