code: def to_dto(self) -> typing.Dict:
      return {
          "filePath": self.file_path,
          "fileHash": self.file_hash,
          "type": self.type,
          "size": self.size,
          "metadata": ArtifactMetadataSerializer.serialize(
              self.metadata
          ),
      }
  
imports: import abc
  import enum
  import pathlib
  import typing
  from dataclasses import dataclass
  from neptune.exceptions import NeptuneUnhandledArtifactSchemeException, NeptuneUnhandledArtifactTypeException
label_desc: Use image node_id 2 for calling the ArtifactFileData obj's underlying member method code with example usage: obj.to_dto() and returns: dict