code: def is_oneflow_module(model) -> bool:
      """
      判断传入的 ``model`` 是否是 :class:`oneflow.nn.Module` 类型。
  
      :param model:
      :return: 当前模型是否为 ``oneflow`` 的模型
      """
      try:
          return isinstance(model, oneflow.nn.Module)
      except BaseException:
          return False
  
file_path: fastNLP/fastNLP/core/utils/oneflow_utils.py
imports: import os
  from typing import Any, Union, Optional
  from fastNLP.envs.env import FASTNLP_DISTRIBUTED_CHECK
  from fastNLP.envs.imports import _NEED_IMPORT_ONEFLOW
  from .utils import apply_to_collection
label_desc: Use image node_id 3 for calling a global function with example usage: is_oneflow_module(model) and returns: isinstance, False