def METHOD_NAME(knots, degrees, cps, weights, cs, conn,
              bcps, bweights, bconn, regions, name='iga_domain_from_data'):
    """
    Create the IGA domain from the given data.
    """
    nurbs = NurbsPatch(knots, degrees, cps, weights, cs, conn)
    bmesh = Struct(name='bmesh', cps=bcps, weights=bweights, conn=bconn)
    domain = IGDomain(name, nurbs=nurbs, bmesh=bmesh, regions=regions)
    return domain