code: def subnetpool_create(request, name, prefixes, **kwargs):
      
      LOG.debug("subnetpool_create(): name=%(name)s, prefixes=%(prefixes)s, "
                "kwargs=%(kwargs)s", {'name': name, 'prefixes': prefixes,
                                      'kwargs': kwargs})
      body = {'subnetpool':
              {'name': name,
               'prefixes': prefixes,
               }
              }
      if 'tenant_id' not in kwargs:
          kwargs['tenant_id'] = request.user.project_id
      body['subnetpool'].update(kwargs)
      subnetpool = \
          neutronclient(request).create_subnetpool(body=body).get('subnetpool')
      return SubnetPool(subnetpool)
docs: Create a subnetpool.
  
      ip_version is auto-detected in back-end.
  
      Parameters:
      request           -- Request context
      name              -- Name for subnetpool
      prefixes          -- List of prefixes for pool
  
      Keyword Arguments (optional):
      min_prefixlen     -- Minimum prefix length for allocations from pool
      max_prefixlen     -- Maximum prefix length for allocations from pool
      default_prefixlen -- Default prefix length for allocations from pool
      default_quota     -- Default quota for allocations from pool
      shared            -- Subnetpool should be shared (Admin-only)
      tenant_id         -- Owner of subnetpool
  
      Returns:
      SubnetPool object