code: def convert(obj):
      """Conversion helper instead of JSON encoder for handling booleans."""
      if isinstance(obj, bool):
          return int(obj)
      if isinstance(obj, (list, tuple)):
          return [convert(item) for item in obj]
      if isinstance(obj, dict):
          return {
              convert(key): convert(value) for key, value in obj.items()
          }
      if isinstance(obj, np.integer):
          return int(obj)
      if isinstance(obj, np.floating):
          return float(obj)
      if isinstance(obj, np.ndarray):
          return convert(obj.tolist())
      if isinstance(obj, np.bool_):
          return int(obj)
      return obj
  
file_path: evojax/scripts/benchmarks/problems.py
imports: import ast
  import re
  import yaml
  import json
  import numpy
  from evojax.policy import MLPPolicy
  from evojax.policy.convnet import ConvNetPolicy
label_desc: Use image node_id 7 for calling a global function with example usage: convert(obj) and returns: obj, int, unknown, unknown, int, float, convert, int