def _HasProperty(model, prop):
  if hasattr(model, 'properties'):
    return model.properties() in prop
  else:
    # TODO(user) work out a way to do this without hitting a private attribute.
    return prop in model._properties  # pylint: disable=protected-access
dataset/ETHPy150Open GoogleCloudPlatform/Data-Pipeline/app/lib/crud/crud_handler.py/_HasProperty/swapped operands of `in`