code: def createAddress(self, prefix, type, network_id, callback=None, errback=None, **kwargs):
          
          import ns1.ipam
          network = ns1.ipam.Network(self.config, id=network_id).load()
          address = ns1.ipam.Address(self.config, prefix=prefix, type=type, network=network)
          return address.create(callback=callback, errback=errback, **kwargs)
docs: Create a new Address
          For the list of keywords available, see :attr:`ns1.rest.ipam.Addresses.INT_FIELDS` and :attr:`ns1.rest.ipam.Addresses.PASSTHRU_FIELDS`
  
          :param str prefix: CIDR prefix of the address to be created
          :param str type: Type of address assignement (planned, assignment or host)
          :param int network_id: network_id associated with the address