class_docstr: Test case for the compositor node object.
class_docstr_tok: ["Test","case","for","the","compositor","node","object","."]
docstr: Test adding optional nodes twice.
docstr_tok: ["Test","adding","optional","nodes","twice","."]
code: def test_add_optional_nodes_twice(self):
      """Test adding optional nodes twice."""
      self.c_node.add_optional_nodes([1, 2])
      self.c_node.add_optional_nodes([3])
      assert self.c_node.optional_nodes == [1, 2, 3]
  
file_path: satpy/satpy/tests/test_node.py
imports: import unittest
  from unittest.mock import MagicMock
  from satpy.node import CompositorNode
label_desc: Use image node_id 6 for calling the TestCompositorNode obj's underlying member method code with example usage: obj.test_add_optional_nodes_twice() without return types