code: def create_strategy(args, is_train=True):
      """
      Create paddle.static.BuildStrategy and paddle.static.ExecutionStrategy with arguments.
  
      Args:
          args(Namespace): Arguments obtained from ArgumentParser.
          is_train(bool, optional): Indicate the prupose of strategy is for training
                                    of not. Default is True.
      Returns:
          build_strategy(paddle.static.BuildStrategy): A instance of BuildStrategy.
          exec_strategy(paddle.static.ExecutionStrategy): A instance of ExecutionStrategy.
      """
      build_strategy = paddle.static.BuildStrategy()
      exec_strategy = paddle.static.ExecutionStrategy()
  
      exec_strategy.num_threads = 1
      exec_strategy.num_iteration_per_drop_scope = (
          10000 if args.amp and args.use_pure_fp16 else 10
      )
  
      paddle.set_flags(
          {
              "FLAGS_cudnn_exhaustive_search": True,
              "FLAGS_conv_workspace_size_limit": 4096,
          }
      )
  
      if not is_train:
          build_strategy.fix_op_run_order = True
  
      if args.amp:
          build_strategy.fuse_bn_act_ops = True
          build_strategy.fuse_elewise_add_act_ops = True
          build_strategy.fuse_bn_add_act_ops = True
          build_strategy.enable_addto = True
          if args.fuse_resunit and is_train:
              build_strategy.fuse_resunit = True
  
      return build_strategy, exec_strategy
  
imports: import time
  import logging
  from profile import Profiler
  import numpy
  from optimizer import build_optimizer
  from lr_scheduler import build_lr_scheduler
  from utils.misc import AverageMeter
  from utils.mode import Mode, RunScope
  from utils.utility import get_num_trainers
  import models
  import dllogger
  import paddle
  import paddle.nn.functional
  from paddle.distributed import fleet
  from paddle.distributed.fleet import DistributedStrategy
  from paddle.incubate import asp
  from paddle.distributed.fleet.meta_optimizers.common import CollectiveHelper
label_desc: Use image node_id 3 for calling a global function with example usage: create_strategy(args, is_train) and returns: build_strategy,  exec_strategy