def find_entity(id_or_name, parent = nil)
      key = CloudDatastore.dataset.key name, id_or_name
      key.parent = parent if parent.present?
      retry_on_exception { CloudDatastore.dataset.find key }
    end
def find_entity(id_or_name, parent = nil)
      key = CloudDatastore.dataset.key name, id_or_name
      key.parent = parent if parent.present?
      retry_on_exception { CloudDatastore.dataset.find key }
    end
Retrieves an entity by id or name and by an optional parent.

 @param [Integer or String] id_or_name The id or name value of the entity Key.
 @param [Google::Cloud::Datastore::Key] parent The parent Key of the entity.

 @return [Entity, nil] a Google::Cloud::Datastore::Entity object or nil.