code: def _get_model_len(model: Any):
      try:
          return len(pickle.dumps(model, -1))
      except Exception:
          logger.warning(
              "Cannot pickle input model. Unable to "
              "extract original model size"
          )
          # Model is not pickable
          return -1
  
imports: import json
  import pickle
  import sys
  from typing import Any, Union, Iterable, Sequence, Dict, Callable, List
  from loguru import logger
  from nebullvm import setup_logger
  from nebullvm.config import MIN_NUMBER
  from nebullvm.core.models import OptimizeInferenceResult, DeviceType
  from nebullvm.operations.base import Operation
  from nebullvm.operations.optimizations.optimize_inference import OptimizeInferenceOp
  from nebullvm.tools.data import DataManager
  from nebullvm.tools.feedback_collector import FeedbackCollector
  from tabulate import tabulate
  from nebullvm.tools.hardware_utils import get_hw_setup
  from nebullvm.tools.utils import get_model_size_mb, get_model_name, generate_model_id
label_desc: Use image node_id 2 for calling a global function with example usage: _get_model_len(model) and returns: len, unknown