code: def testToSwaggerDict(self):
      pod = client.V1Pod(
          metadata=client.V1ObjectMeta(
              owner_references=[
                  client.V1OwnerReference(
                      api_version="argoproj.io/v1alpha1",
                      kind="Workflow",
                      name="wf-1",
                      uid="wf-uid-1",
                  )
              ]
          ),
          spec=client.V1PodSpec(containers=[], service_account="sa-1"),
      )
  
      pod_dict = container_common.to_swagger_dict(pod)
  
      self.assertDictEqual(
          {
              "metadata": {
                  "ownerReferences": [
                      {
                          "apiVersion": "argoproj.io/v1alpha1",
                          "kind": "Workflow",
                          "name": "wf-1",
                          "uid": "wf-uid-1",
                      }
                  ]
              },
              "spec": {"serviceAccount": "sa-1"},
          },
          pod_dict,
      )
  
file_path: tfx/tfx/orchestration/launcher/container_common_test.py
imports: from kubernetes import client
  import tensorflow
  from tfx.dsl.components.base import executor_spec
  from tfx.orchestration.launcher import container_common
  from tfx.proto import trainer_pb2
  from tfx.types import standard_artifacts
label_desc: Use image node_id 2 for calling the ContainerUtilsTest obj's underlying member method code with example usage: obj.testToSwaggerDict() without return types