code: def cap_examples(num_examples, cap):
      if cap is None:
          return num_examples
      else:
          return min(num_examples, cap)
  
file_path: jiant/jiant/proj/main/scripts/configurator.py
imports: import math
  import os
  import torch
  import jiant.utils.zconf
  import jiant.utils.python.io
  import jiant.utils.python.datastructures
label_desc: Use image node_id 2 for calling a global function with example usage: cap_examples(num_examples, cap) and returns: num_examples, min