code: def is_container(item):
      """Checks if item is a container (list, tuple, dict, set)
  
      Parameters
      ----------
      item : object
          object to check for .__iter__
  
      Returns
      -------
      output : Boolean
          True if container
          False if not (eg string)
      """
      if isinstance(item, str):
          return False
      elif hasattr(item, "__iter__"):
          return True
      else:
          return False
  
file_path: nipype/nipype/utils/misc.py
imports: import os
  import sys
  import re
  from collections.abc import Iterator
  from warnings import warn
  from looseversion import LooseVersion
  import numpy
  import textwrap
label_desc: Use image node_id 4 for calling a global function with example usage: is_container(item) and returns: False, True, False