code: def _var_to_str(
      binder_idx: dict[jax.core.Var, int], atom: jax.core.Atom
  ) -> str:
      """Returns an atom name based on var binding order in its containing jaxpr."""
      if isinstance(atom, jax.core.DropVar):
          return "_"
      if isinstance(atom, jax.core.Literal):
          return str(atom)
      assert isinstance(atom, jax.core.Var)
      n = binder_idx[atom]
      s = ""
      while not s or n:
          n, i = n // 26, n % 26
          s = chr(97 + i % 26) + s
      return s
  
imports: from collections.abc import Mapping, Sequence
  import dataclasses
  import itertools
  import logging
  import os
  import sys
  from typing import Any, Callable, NamedTuple, Optional
  from haiku._src import summarise
  import jax
  import jax.core
label_desc: Use image node_id 6 for calling a global function with example usage: _var_to_str(binder_idx, atom) and returns: s, str, str