code: def to_json(self) -> str:
      return json.dumps(
          {
              "output": self.output,
              **self.metadata,
          },
          indent=2,
      )
  
imports: import json
  import logging
  from abc import ABC, abstractmethod
  from copy import deepcopy
  from typing import Any, Dict, TypeVar, Union
  import tiktoken
  from evals.api import CompletionFn
  from evals.task_state import TaskState
label_desc: Use image node_id 4 for calling the SolverResult obj's underlying member method code with example usage: obj.to_json() and returns: json