code: def create_with_netlinks(cls, name, netlinks, **kwargs):
          
          multilink_members = []
          for member in netlinks:
              m = {'ip_range': member.get('ip_range', '0.0.0.0'),
                   'netlink_role': member.get('netlink_role', 'active')}
              netlink = member.get('netlink')
              m.update(netlink_ref=netlink.href)
              if netlink.typeof == 'netlink':
                  m.update(network_ref=netlink.data.get('ref')[0])
              multilink_members.append(m)
          
          return cls.create(name, multilink_members, **kwargs)
docs: Create a multilink with a list of StaticNetlinks. To properly create
          the multilink using this method, pass a list of netlinks with the
          following dict structure::
          
              netlinks = [{'netlink': StaticNetlink,
                           'ip_range': 1.1.1.1-1.1.1.2,
                           'netlink_role': 'active'}]
          
          The `netlink_role` can be either `active` or `standby`. The remaining
          settings are resolved from the StaticNetlink. The IP range value must
          be an IP range within the StaticNetlink's specified network.
          Use kwargs to pass any additional arguments that are supported by the
          `create` constructor.
          A full example of creating a multilink using predefined netlinks::
          
              multilink = Multilink.create_with_netlinks(
                  name='mynewnetlink',
                  netlinks=[{'netlink': StaticNetlink('netlink1'),
                             'ip_range': '1.1.1.2-1.1.1.3',
                             'netlink_role': 'active'},
                            {'netlink': StaticNetlink('netlink2'),
                             'ip_range': '2.1.1.2-2.1.1.3',
                             'netlink_role': 'standby'}])
          
          :param StaticNetlink,DynamicNetlink netlink: StaticNetlink element
          :param str ip_range: ip range for source NAT on this netlink
          :param str netlink_role: the role for this netlink, `active` or
              `standby`
          :raises CreateElementFailed: failure to create multilink
          :rtype: Multilink