code: def usage_exit(msg=None):
      if msg:
          print(msg)
      print(
          """\
  Usage: {} [options]
  
  Options:
    -h, --help           Show this message
    --output-dir <dir>   Path of directory where to write test data
  """.format(
              sys.argv[0]
          )
      )
      sys.exit(1)
  
imports: from __future__ import print_function
  import getopt
  import sys
  from petastorm.tests.test_common import create_test_dataset
label_desc: Use image node_id 1 for calling a global function with example usage: usage_exit(msg) without return types