code: def is_private(self):
          
          private_10 = IPv4Network(u'10.0.0.0/8')
          private_172 = IPv4Network(u'172.16.0.0/12')
          private_192 = IPv4Network(u'192.168.0.0/16')
          return (self in private_10 or
                  self in private_172 or
                  self in private_192)
docs: Test if this address is allocated for private networks.
  
          Returns:
              A boolean, True if the address is reserved per RFC 1918.