code: def _should_skip_because_type(x):
      # don't worry about functions because they can't be specified by JSON.
      # Could make a better mo
      if inspect.isfunction(x):
          return True
      # later could extend for other non-JSON valid types
      return False
  
file_path: pykeen/src/pykeen/experiments/validate.py
imports: import inspect
  import pathlib
  from typing import Callable, Iterable, Optional, Set, Tuple, Type, Union
  import torch
  from class_resolver import Hint
  from torch import nn
  from .cli import HERE
  from ..datasets import dataset_resolver
  from ..evaluation.evaluator import normalize_flattened_metric_results
  from ..evaluation.rank_based_evaluator import RankBasedEvaluator
  from ..losses import loss_resolver
  from ..models import Model, model_resolver
  from ..optimizers import optimizer_resolver
  from ..regularizers import regularizer_resolver
  from ..sampling import negative_sampler_resolver
  from ..training import training_loop_resolver
  from ..utils import CONFIGURATION_FILE_FORMATS, load_configuration, normalize_string
label_desc: Use image node_id 2 for calling a global function with example usage: _should_skip_because_type(x) and returns: False, True