code: def index_conditional_iterate(skip_condition, iterable, index):
      for i, x in enumerate(iterable):
          if skip_condition(i):
              continue
  
          if index:
              yield i, x
          else:
              yield x
  
imports: import hashlib
  import operator
  import sys
  from collections import Counter
  from collections import OrderedDict
  from datetime import datetime
  from numbers import Number
  import numpy
  import torch
label_desc: Use image node_id 2 for calling a global function with example usage: index_conditional_iterate(skip_condition, iterable, index) without return types