code: def _is_valid_provider(proposed_provider):
      try:
          has_render_method = hasattr(proposed_provider, "render")
          has_parallel_method = hasattr(proposed_provider, "parallel")
  
          if has_parallel_method or has_render_method:
              return True
  
          _log.warning("Proposed provider is not valid.")
          return False
  
      except Exception as e:
          _log.warning("Validate function threw exception {}".format(e))
          return False
  
file_path: interpret/python/interpret-core/interpret/ext/extension.py
imports: import logging
label_desc: Use image node_id 7 for calling a global function with example usage: _is_valid_provider(proposed_provider) and returns: False, True, False