code: def heads(config, verbose=False, resolve_dependencies=False):
      """Show current available heads in the script directory.
  
      :param config: a :class:`.Config` instance.
  
      :param verbose: output in verbose mode.
  
      :param resolve_dependencies: treat dependency version as down revisions.
  
      """
  
      script = ScriptDirectory.from_config(config)
      if resolve_dependencies:
          heads = script.get_revisions("heads")
      else:
          heads = script.get_revisions(script.get_heads())
  
      for rev in heads:
          config.print_stdout(
              rev.cmd_format(
                  verbose, include_branches=True, tree_indicators=False
              )
          )
  
imports: from __future__ import annotations
  import os
  from typing import List
  from typing import Optional
  from typing import TYPE_CHECKING
  from typing import Union
  from .None import autogenerate
  from .None import util
  from .runtime.environment import EnvironmentContext
  from .script import ScriptDirectory
label_desc: Use image node_id 10 for calling a global function with example usage: heads(config, verbose, resolve_dependencies) without return types