code: def _build_envs(cls, ctx, op):
      envs = super()._build_envs(ctx, op)
      if op.master_port is not None:
          envs["MASTER_PORT"] = str(op.master_port)
      if op.master_addr is not None:
          envs["MASTER_ADDR"] = str(op.master_addr)
      return envs
  
imports: import os
  from typing import Any, BinaryIO, Dict, List, Optional, TextIO, Union
  import numpy
  from ....None import opcodes
  from ....core.context import get_context
  from ....remote.run_script import RunScript, _extract_inputs
  from ....serialization.serializables import Int32Field, StringField
  from ....typing import SessionType, TileableType
  from ....utils import to_binary
  from ..utils import pick_workers
label_desc: Use image node_id 6 for calling the RunPyTorch obj's underlying member method code with example usage: obj._build_envs(cls, ctx, op) and returns: envs