code: def _get_dependency(get: Get, compute_cov: bool) -> tuple[str, ...]:
      """Figure out dependency for get."""
      _, get = utils.canonicalize_get(get)
      for g in get:
          if g not in ["nngp", "ntk"]:
              raise NotImplementedError(
                  'Can only get either "nngp" or "ntk" predictions, got %s.'
                  % g
              )
      get_dependency = ()
      if "nngp" in get or ("ntk" in get and compute_cov):
          get_dependency += ("nngp",)
      if "ntk" in get:
          get_dependency += ("ntk",)
      return get_dependency
  
imports: import collections
  from functools import lru_cache
  from typing import Any, Callable, Generator, Iterable, NamedTuple, Optional, Protocol, Union
  import jax
  from jax import grad
  from jax.experimental import ode
  import jax.numpy
  import jax.scipy
  from jax.tree_util import tree_all
  from jax.tree_util import tree_map
  import numpy
  import scipy
  from .utils import dataclasses
  from .utils import utils
  from .utils.typing import Axes
  from .utils.typing import Get
  from .utils.typing import KernelFn
label_desc: Use image node_id 7 for calling a global function with example usage: _get_dependency(get, compute_cov) and returns: get_dependency