code: def _config_has_search_space(config):
      """Check if there's any search space in configuration."""
      for _, v in config.items():
          if isinstance(v, Space):
              return True
          if isinstance(v, list):
              for item in v:
                  if isinstance(item, Space):
                      return True
      return False
  
imports: from bigdl.nano.pytorch.lightning import LightningModule
  from bigdl.nano.utils.common import invalidInputError
  from typing import List
  import pytorch_lightning
  from torchmetrics.metric import Metric
  from torch.optim.lr_scheduler import _LRScheduler
  import bigdl.nano.automl.hpo
  import warnings
  import torch
  import inspect
  from torch import nn, Tensor, fx
  from torch.utils.data import TensorDataset, DataLoader
  from bigdl.nano.automl.hpo.space import Space
label_desc: Use image node_id 4 for calling a global function with example usage: _config_has_search_space(config) and returns: False, True, True