def _date_to_datetime(value):
  if not isinstance(value, datetime.date):
    raise TypeError('Cannot convert to datetime expected date value; '
                    'received %s' % value)
  return datetime.datetime(value.year, value.month, value.day)
Creates a new container, and returns a Container object that represents
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py/_date_to_datetime--crossover with--dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py/ContainerManager.create