code: def from_hex(cls, value):
          
          if len(value) == 8:
              return cls(int(value, 16))
          elif len(value) == 32:
              return cls(int(value, 16))
          else:
              raise ValueError('%r: invalid hexadecimal notation' % (value,))
docs: Initialize a new network from hexadecimal notation.