code: def load(
      meta: dict,
      algo_type: Literal["tuner", "assessor", "advisor"] | None = None,
  ) -> AlgoMeta:
      if algo_type is None:
          algo_type = meta["algoType"]  # type: ignore
      return AlgoMeta(
          name=meta["builtinName"],
          alias=meta.get("alias"),
          class_name=meta["className"],
          accept_class_args=meta.get("acceptClassArgs", True),
          class_args=meta.get("classArgs"),
          validator_class_name=meta.get("classArgsValidator"),
          algo_type=(
              "assessor" if algo_type == "assessor" else "tuner"
          ),
          is_advisor=meta.get("isAdvisor", algo_type == "advisor"),
          is_builtin=(meta.get("source") == "nni"),
          nni_version=meta.get("nniVersion"),
      )
  
imports: from __future__ import annotations
  from typing import NamedTuple
  from typing_extensions import Literal
label_desc: Use image node_id 1 for calling the AlgoMeta obj's underlying member method code with example usage: obj.load(meta, algo_type) and returns: AlgoMeta