code: def convert_sample_to_dict(
      self, samples
  ) -> Union[List[dict], List[List[dict]]]:
      raise AbstractMethodNotImplementError
  
imports: import json
  from abc import abstractmethod
  from os.path import join
  from typing import List, Union
  from fedot.core.utils import fedot_project_root
  from fedot.utilities.custom_errors import AbstractMethodNotImplementError
label_desc: Use image node_id 2 for calling the Problem obj's underlying member method code with example usage: obj.convert_sample_to_dict(samples) without return types