code: def is_valid_esi(esi):
      
      if isinstance(esi, numbers.Integral):
          return 0 <= esi <= 0xffffffffffffffffff
      return isinstance(esi, dict)
docs: Returns True if the given EVPN Ethernet SegmentEthernet ID is valid.