docstr: Test if the base_port + worker_id is different
  for each environment when using custom ports
docstr_tok: ["Test","if","the","base_port","+","worker_id","is","different","for","each","environment","when","using","custom","ports"]
code: def test_custom_port_app(self, mock_unity3d):
      """Test if the base_port + worker_id is different
      for each environment when using custom ports"""
  
      _ = Unity3DEnv(file_name="app", port=5010)
      args, kwargs_first = mock_unity3d.call_args
      _ = Unity3DEnv(file_name="app", port=5010)
      args, kwargs_second = mock_unity3d.call_args
      self.assertNotEqual(
          kwargs_first.get("base_port") + kwargs_first.get("worker_id"),
          kwargs_second.get("base_port")
          + kwargs_second.get("worker_id"),
      )
  
file_path: ray/rllib/env/wrappers/tests/test_unity3d_env.py
imports: import unittest
  from unittest.mock import patch
  from ray.rllib.env.wrappers.unity3d_env import Unity3DEnv
label_desc: Use image node_id 4 for calling the TestUnity3DEnv obj's underlying member method code with example usage: obj.test_custom_port_app(mock_unity3d) without return types