code: def _parse_every_object(obj, condition_func, convert_func):
      if condition_func(obj):
          return convert_func(obj)
      elif isinstance(obj, (dict, OrderedDict, list)):
          if isinstance(obj, list):
              keys = range(len(obj))
          else:
              keys = list(obj.keys())
          for key in keys:
              if condition_func(obj[key]):
                  obj[key] = convert_func(obj[key])
              else:
                  obj[key] = _parse_every_object(
                      obj[key], condition_func, convert_func
                  )
          return obj
      elif isinstance(obj, tuple):
          return tuple(
              _parse_every_object(
                  list(obj), condition_func, convert_func
              )
          )
      elif isinstance(obj, set):
          object(list(obj), condition_func, convert_func)
      else:
          return obj
  
file_path: safetensors/attacks/paddle_ace_create.py
imports: import paddle
  import numpy
  from collections import Iterable, OrderedDict
label_desc: Use image node_id 1 for calling a global function with example usage: _parse_every_object(obj, condition_func, convert_func) and returns: convert_func, obj, tuple, obj