code: def test_tuple(doc):
      """std::pair <-> tuple & std::tuple <-> tuple"""
      assert m.pair_passthrough((True, "test")) == ("test", True)
      assert m.tuple_passthrough((True, "test", 5)) == (5, "test", True)
      # Any sequence can be cast to a std::pair or std::tuple
      assert m.pair_passthrough([True, "test"]) == ("test", True)
      assert m.tuple_passthrough([True, "test", 5]) == (5, "test", True)
      assert m.empty_tuple() == ()
  
      assert (
          doc(m.pair_passthrough)
          == """
          pair_passthrough(arg0: Tuple[bool, str]) -> Tuple[str, bool]
  
          Return a pair in reversed order
      """
      )
      assert (
          doc(m.tuple_passthrough)
          == """
          tuple_passthrough(arg0: Tuple[bool, str, int]) -> Tuple[int, str, bool]
  
          Return a triple in reversed order
      """
      )
  
      assert m.rvalue_pair() == ("rvalue", "rvalue")
      assert m.lvalue_pair() == ("lvalue", "lvalue")
      assert m.rvalue_tuple() == ("rvalue", "rvalue", "rvalue")
      assert m.lvalue_tuple() == ("lvalue", "lvalue", "lvalue")
      assert m.rvalue_nested() == (
          "rvalue",
          ("rvalue", ("rvalue", "rvalue")),
      )
      assert m.lvalue_nested() == (
          "lvalue",
          ("lvalue", ("lvalue", "lvalue")),
      )
  
      assert m.int_string_pair() == (2, "items")
  
imports: import sys
  import pytest
  import env
  from pybind11_tests import IncType, UserType
  from pybind11_tests import builtin_casters
label_desc: Use image node_id 10 for calling a global function with example usage: test_tuple(doc) without return types