code: def hint_tuples(item: Any) -> Any:
      if isinstance(item, tuple):
          return {
              "__class__": "tuple",
              "__value__": [hint_tuples(e) for e in item],
          }
      if isinstance(item, list):
          return [hint_tuples(e) for e in item]
      if isinstance(item, dict):
          return {
              key: hint_tuples(value) for key, value in item.items()
          }
      else:
          return item
  
file_path: dedupe/dedupe/serializer.py
imports: import json
  from typing import Any, Iterator, TextIO
  from dedupe._typing import TrainingData
label_desc: Use image node_id 2 for calling a global function with example usage: hint_tuples(item) and returns: dict, unknown, unknown, item