code: def _check_arg_is_not_none(args, arg):
      assert (
          getattr(args, arg) is not None
      ), "{} argument is None".format(arg)
  
imports: import argparse
  import dataclasses
  import json
  import os
  import torch
  import types
  import torch.nn.functional
  from megatron.global_vars import set_retro_args, get_retro_args
  from tools.retro.utils import get_args_path
  from megatron.core.models.retro import RetroConfig
  from megatron.core.transformer import TransformerConfig
label_desc: Use image node_id 4 for calling a global function with example usage: _check_arg_is_not_none(args, arg) without return types