docs: def encode(self, value):
          """Encodes the given value according to this AIT Argument
          Definition.
          """
          if type(value) == str and self.enum and value in self.enum:
              value = self.enum[value]
          return self.type.encode(value) if self.type else bytearray()