code: def create_functions() -> Functions:
      functions = Functions()
      # casts
      functions.register(name="int", func=grammar_functions.cast_int)
      functions.register(name="str", func=grammar_functions.cast_str)
      functions.register(name="bool", func=grammar_functions.cast_bool)
      functions.register(
          name="float", func=grammar_functions.cast_float
      )
      # sweeps
      functions.register(name="choice", func=grammar_functions.choice)
      functions.register(name="range", func=grammar_functions.range)
      functions.register(
          name="interval", func=grammar_functions.interval
      )
      # misc
      functions.register(name="tag", func=grammar_functions.tag)
      functions.register(name="sort", func=grammar_functions.sort)
      functions.register(name="shuffle", func=grammar_functions.shuffle)
      functions.register(name="glob", func=grammar_functions.glob)
      return functions
  
file_path: hydra/hydra/core/override_parser/overrides_parser.py
imports: import sys
  from typing import Any, List, Optional
  from antlr4.error.Errors import LexerNoViableAltException, RecognitionException
  from hydra._internal.grammar import grammar_functions
  from hydra._internal.grammar.functions import Functions
  from hydra.core.config_loader import ConfigLoader
  from hydra.core.override_parser.overrides_visitor import HydraErrorListener, HydraOverrideVisitor
  from hydra.core.override_parser.types import Override
  from hydra.errors import HydraException, OverrideParseException
label_desc: Use image node_id 1 for calling a global function with example usage: create_functions() and returns: functions