code: def get_enum_from_name(self, enum_name):
          
          return next((e for e in self.enums if e.name == enum_name), None)
docs: Return an enum from a name
          Args:
              enum_name (str): name of the enum
          Returns:
              Enum