code: def _none_to_iterator(value, repeat=None):
      return value if value is not None else itertools.repeat(repeat)
  
file_path: poutyne/poutyne/plotting.py
imports: import itertools
  import os
  from typing import Any, Dict, List, Optional, Tuple, Union
  from poutyne.utils import is_in_jupyter_notebook
label_desc: Use image node_id 2 for calling a global function with example usage: _none_to_iterator(value, repeat) and returns: unknown