code: def setup(
          hosts,
          default_keyspace,
          consistency=None,
          lazy_connect=False,
          retry_connect=False,
          **kwargs):
      
  
      from cassandra.cqlengine import models
      models.DEFAULT_KEYSPACE = default_keyspace
  
      register_connection('default', hosts=hosts, consistency=consistency, lazy_connect=lazy_connect,
                          retry_connect=retry_connect, cluster_options=kwargs, default=True)
docs: Setup a the driver connection used by the mapper
  
      :param list hosts: list of hosts, (``contact_points`` for :class:`cassandra.cluster.Cluster`)
      :param str default_keyspace: The default keyspace to use
      :param int consistency: The global default :class:`~.ConsistencyLevel` - default is the same as :attr:`.Session.default_consistency_level`
      :param bool lazy_connect: True if should not connect until first use
      :param bool retry_connect: True if we should retry to connect even if there was a connection failure initially
      :param \*\*kwargs: Pass-through keyword arguments for :class:`cassandra.cluster.Cluster`