code: def find_variant(name: str) -> Type[chess.Board]:
      
      for variant in VARIANTS:
          if any(alias.lower() == name.lower() for alias in variant.aliases):
              return variant
      raise ValueError("unsupported variant: {}".format(name))
docs: Looks for a variant board class by variant name.