code: def to_dict(self) -> dict:
      raise NotImplementedError
  
imports: import abc
  from typing import Any, Dict, Optional, TypedDict
label_desc: Use image node_id 5 for calling the Resource obj's underlying member method code with example usage: obj.to_dict() without return types