code: def serialize(
      metadata: typing.Dict[str, str]
  ) -> typing.List[typing.Dict[str, str]]:
      return [
          {"key": k, "value": v} for k, v in sorted(metadata.items())
      ]
  
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 1 for calling the ArtifactMetadataSerializer obj's underlying member method code with example usage: obj.serialize(metadata) and returns: unknown