code: def compute_mypy_flags() -> str:  # pragma: no cover
      from mypy.version import __version__ as mypy_version
  
      MYPY_VERSION = Version(mypy_version)
  
      flags = []
  
      def set_always(variable: str, value: bool) -> None:
          if value:
              flags.append("--always-true")
          else:
              flags.append("--always-false")
          flags.append(variable)
  
      set_always("NP_TYPE_CHECKING", True)
      set_always("GENERIC_NP_ARRAYS", NP_VERSION >= Version("1.21.0"))
      if MYPY_VERSION >= Version("0.940"):
          flags.extend(["--enable-error-code", "ignore-without-code"])
  
      return " ".join(flags)
  
label_desc: Use image node_id 1 for calling a global function with example usage: compute_mypy_flags() and returns: str