code: def test_creation_sequence_to_weights(self):
      assert nxt.creation_sequence_to_weights([3, 1, 2]) == [
          0.5,
          0.5,
          0.5,
          0.25,
          0.75,
          0.75,
      ]
      assert pytest.raises(
          TypeError, nxt.creation_sequence_to_weights, [3.0, 1.0, 2.0]
      )
  
imports: import pytest
  import networkx
  import networkx.algorithms.threshold
  from networkx.algorithms.isomorphism.isomorph import graph_could_be_isomorphic
label_desc: Use image node_id 5 for calling the TestGeneratorThreshold obj's underlying member method code with example usage: obj.test_creation_sequence_to_weights() without return types