code: def _resolve_condition(instance, condition_or_attr_name):
      if callable(condition_or_attr_name):
          return condition_or_attr_name(instance)
      elif isinstance(condition_or_attr_name, six.string_types):
          return getattr(instance, condition_or_attr_name)
      return condition_or_attr_name
  
imports: import threading
  from functools import wraps
  import attr
  import six
label_desc: Use image node_id 4 for calling the DeferredExecution obj's underlying member method code with example usage: obj._resolve_condition(instance, condition_or_attr_name) and returns: condition_or_attr_name, condition_or_attr_name, getattr