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