code: def test_error_on_input_order_mistake(self):
      # see issue #4846 https://github.com/networkx/networkx/issues/4846
      pytest.raises(TypeError, self.tsp, self.UG, weight="weight")
      pytest.raises(nx.NetworkXError, self.tsp, self.UG, "weight")
  
imports: import random
  import pytest
  import networkx
  import networkx.algorithms.approximation
label_desc: Use image node_id 3 for calling the TestSimulatedAnnealingTSP obj's underlying member method code with example usage: obj.test_error_on_input_order_mistake() without return types