def get_entity_dict(entities):
    if isinstance(entities, db.Model):
        return _get_entity_dict(entities)

    return [_get_entity_dict(e) for e in entities]
Establish that our write method, if it gets a file-like object,
dataset/ETHPy150Open moraes/tipfy/tipfy/appengine/db/__init__.py/get_entity_dict--crossover with--dataset/ETHPy150Open ansible/tower-cli/tests/test_models_base.py/ResourceTests.test_write_file_like_object