code: def network_size(value, options=None, version=None):
      '''
      Get the size of a network.
      '''
      ipaddr_filter_out = _filter_ipaddr(value, options=options, version=version)
      if not ipaddr_filter_out:
          return
      if not isinstance(value, (list, tuple, types.GeneratorType)):
          return _network_size(ipaddr_filter_out[0])
      return [
          _network_size(ip_a)
          for ip_a in ipaddr_filter_out
      f network_size(value, options=None, version=None):
      '''
      Get the size of a network.
      '''
      ipaddr_filter_out = _filter_ipaddr(value, options=options, version=version)
      if not ipaddr_filter_out:
          return
      if not isinstance(value, (list, tuple, types.GeneratorType)):
          return _network_size(ipaddr_filter_out[0])
      return [
          _network_size(ip_a)
          for ip_a in ipaddr_filter_out
      ]
docs: Get the size of a network.