code: def check_required_args(required, args, ctx, msg_template=None):
      msg_template = msg_template or "missing one of: %s"
      missing_args = []
      for val in required:
          arg_name, arg = _arg_parts(val)
          if getattr(args, arg_name, None):
              return
          missing_args.append(arg)
      msg = msg_template % ", ".join(missing_args)
      cli.error(
          f"{msg}\nTry `{ctx.command_path} --help` for more information."
      )
  
imports: import logging
  import os
  import typing
  from guild import cli
  from guild import click_util
  from guild import config
label_desc: Use image node_id 18 for calling a global function with example usage: check_required_args(required, args, ctx, msg_template) without return types