def create_tenant(self, tenant_name: str) -> uuid.UUID:
        """
        Create a new tenant and return the tenant_id.

        Parameters
        ----------
            tenant_name (str): The name of the tenant to create.

        Returns
        -------
            tenant_id (uuid.UUID): The id of the newly created tenant.

        """
        with self._sync_conn.cursor() as cursor:
            cursor.execute(
                """
                           INSERT INTO tenants (name) VALUES (%(tenant_name)s) returning id
                           """,
                {"tenant_name": tenant_name},
            )
            tenant_id = cursor.fetchone()[0]
            self._sync_conn.commit()
            return tenant_id

        Create a new tenant and return the tenant_id.

        Parameters
        ----------
            tenant_name (str): The name of the tenant to create.

        Returns
        -------
            tenant_id (uuid.UUID): The id of the newly created tenant.

        
llama-index-integrations/vector_stores/llama-index-vector-stores-nile/llama_index/vector_stores/nile/base.py