code: def check_megam_config():
      """
      Checks whether the MEGAM binary is configured.
      """
      try:
          _megam_bin
      except NameError as e:
          err_msg = str(
              "Please configure your megam binary first, e.g.\n"
              ">>> nltk.config_megam('/usr/bin/local/megam')"
          )
          raise NameError(err_msg) from e
  
file_path: nltk/nltk/classify/util.py
imports: import math
  import nltk.classify.util
  from nltk.util import LazyMap
label_desc: Use image node_id 10 for calling a global function with example usage: check_megam_config() without return types