human
Python function to iterator with conditional conditional function.
assistant
Here is a Python function to iterator with conditional conditions

import itertools

def _IteratorWithConditional(iterable, condition):
  """Iterator with conditional."""
  for item in iterable:
    if condition(item):
      yield item

# Enter the iterable
iterable = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Calling the function
for item in _IteratorWithConditional(iterable, lambda x: x % 2 == 0):
  print(item)

#Example Output
# 2
# 4
# 6
# 8
# 10

#Remember to inspect code for bugs.