code: def _parse_num_inputs_and_targets(inputs, targets=None):
      if isinstance(inputs, (list, tuple)):
          num_inputs = len(inputs)
      else:
          num_inputs = 1
      if targets is not None:
          if isinstance(targets, (list, tuple)):
              num_targets = len(targets)
          else:
              num_targets = 1
      else:
          num_targets = 0
      return num_inputs, num_targets
  
file_path: pywick/pywick/modules/_utils.py
imports: import datetime
  import warnings
  import torch.nn.functional
  import torch.optim
  from ..metrics import Metric, CategoricalAccuracy, BinaryAccuracy
  from ..initializers import GeneralInitializer
label_desc: Use image node_id 3 for calling a global function with example usage: _parse_num_inputs_and_targets(inputs, targets) and returns: num_inputs,  num_targets