code: def is_paddle_module(model) -> bool:
      """
      判断传入的 ``model`` 是否是 :class:`paddle.nn.Layer` 类型
  
      :param model: 模型；
      :return: 当前模型是否为 ``paddle`` 的模型；
      """
      try:
          return isinstance(model, paddle.nn.Layer)
      except BaseException:
          return False
  
file_path: fastNLP/fastNLP/core/utils/paddle_utils.py
imports: import os
  import re
  from typing import Any, Optional, Union
  from fastNLP.envs.imports import _NEED_IMPORT_PADDLE
  from fastNLP.envs import FASTNLP_DISTRIBUTED_CHECK, FASTNLP_BACKEND_LAUNCH, USER_CUDA_VISIBLE_DEVICES
  from .utils import apply_to_collection
label_desc: Use image node_id 9 for calling a global function with example usage: is_paddle_module(model) and returns: isinstance, False