class_docstr: Tests the alias argument `patients`.
class_docstr_tok: ["Tests","the","alias","argument","`","patients","`","."]
code: def test_alias(self):
      # By keyword
      trigger = triggers.EarlyStoppingTrigger(patients=10)
      assert trigger.patience == 10
  
      # By positional
      trigger = triggers.EarlyStoppingTrigger(
          (1, "epoch"), "main/loss", 10
      )
      assert trigger.patience == 10
  
      # Duplicated, by keyword
      with pytest.raises(TypeError):
          triggers.EarlyStoppingTrigger(patience=10, patients=3)
  
      # Duplicated, by positional
      with pytest.raises(TypeError):
          triggers.EarlyStoppingTrigger(
              (1, "epoch"), "main/loss", 10, patients=3
          )
  
file_path: chainer/tests/chainer_tests/training_tests/triggers_tests/test_early_stopping_trigger.py
imports: import unittest
  import numpy
  import pytest
  import chainer
  from chainer import testing
  from chainer.training import triggers
  from chainer.training import util
label_desc: Use image node_id 1 for calling the TestEarlyStoppingTriggerPatienceAlias obj's underlying member method code with example usage: obj.test_alias() without return types