code: def has_targets(generator):
      sample = next(iter(generator()))
      return isinstance(sample, tuple) and len(sample) == 2
  
file_path: finetune/finetune/util/input_utils.py
imports: import math
  import tensorflow
  from finetune.util.timing import ProgressBar
label_desc: Use image node_id 3 for calling a global function with example usage: has_targets(generator) and returns: unknown