code: def analyze(args, cfg):
      custom_ops = {paddle.nn.SyncBatchNorm: op_flops_funs.count_syncbn}
      inputs = paddle.randn(args.input_shape)
  
      builder = make_default_builder(cfg)
      dynamic_flops(
          builder.model,
          inputs,
          custom_ops=custom_ops,
          num_levels=args.num_levels,
      )
  
file_path: PaddleSeg/contrib/PanopticSeg/tools/analyze_model.py
imports: import argparse
  import io
  import sys
  import contextlib
  from collections import OrderedDict
  import paddle
  from paddle.hapi.static_flops import Table
  from paddle.hapi.dynamic_flops import count_parameters, register_hooks, count_io_info
  from paddleseg.utils import get_sys_env, logger, op_flops_funs, utils
  from paddlepanseg.cvlibs import Config, make_default_builder
label_desc: Use image node_id 9 for calling a global function with example usage: analyze(args, cfg) without return types