code: def apply_to_static(config, model):
      filename = config.get("filename", None)
      spec = TO_STATIC_SPEC.get(filename, None)
      model = paddle.jit.to_static(model, input_spec=spec)
      logger.info(
          "Successfully to apply @to_static with specs: {}".format(spec)
      )
      return model
  
file_path: PaddleDetection/ppdet/engine/export_utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import yaml
  from collections import OrderedDict
  import paddle
  from ppdet.data.source.category import get_categories
  from ppdet.utils.logger import setup_logger
label_desc: Use image node_id 1 for calling a global function with example usage: apply_to_static(config, model) and returns: model