def METHOD_NAME(self):
    scaler = PodScaler("elasticjob-sample", "default")
    scaler._init_pod_config_by_job()
    scaler._distribution_strategy = DistributionStrategy.PS
    resource = NodeResource(4, 8192)
    node = Node(NodeType.WORKER, 0, resource, rank_index=0)
    pod_stats = {
        NodeType.WORKER: 3,
        NodeType.CHIEF: 1,
        NodeType.PS: 2,
    }
    ps_addrs = [
        "elasticjob-sample-edljob-ps-0",
        "elasticjob-sample-edljob-ps-1",
    ]
    scaler._config_worker_num = 2
    pod = scaler._create_pod(node, pod_stats, ps_addrs)
    self.assertEqual(
        pod.metadata.name, "elasticjob-sample-edljob-worker-0"
    )
    main_container = pod.spec.containers[0]
    self.assertEqual(main_container.resources.limits["cpu"], 4)
    self.assertEqual(main_container.resources.limits["memory"], "8192Mi")
    self.assertEqual(main_container.env[-1].name, "TF_CONFIG")
    self.assertTrue(
        """{"type": "worker", "index": 0}"""
        in main_container.env[-1].value
    )
    env_worker_num = 0
    env_job_name = ""
    env_job_uid = ""
    for env in main_container.env:
        if env.name == "WORKER_NUM":
            env_worker_num = int(env.value)
        elif env.name == "ELASTIC_JOB_NAME":
            env_job_name = env.value
        elif env.name == "JOB_UID":
            env_job_uid = env.value
    self.assertEqual(env_worker_num, 2)
    self.assertEqual(env_job_name, "elasticjob-sample")
    self.assertEqual(env_job_uid, "111-222")
    node = Node(NodeType.CHIEF, 0, resource, rank_index=0)
    pod = scaler._create_pod(node, pod_stats, ps_addrs)
    main_container = pod.spec.containers[0]
    self.assertTrue(
        """{"type": "chief", "index": 0}""" in main_container.env[-1].value
    )
    node = Node(NodeType.PS, 0, resource, rank_index=0)
    pod = scaler._create_pod(node, pod_stats, ps_addrs)
    main_container = pod.spec.containers[0]
    self.assertTrue(
        """{"type": "ps", "index": 0}""" in main_container.env[-1].value
    )
    node = Node(NodeType.WORKER, 0, resource, rank_index=0)
    pod = scaler._create_pod(node, pod_stats, ps_addrs)
    main_container = pod.spec.containers[0]
    self.assertEqual(len(pod.spec.volumes), 1)
    self.assertEqual(pod.spec.volumes[0].name, "pvc-nas")
    self.assertEqual(len(main_container.volume_mounts), 1)