code: def test_constructor_name(self):
      # GH#12288
      orig = RangeIndex(10)
      orig.name = "original"
  
      copy = RangeIndex(orig)
      copy.name = "copy"
  
      assert orig.name == "original"
      assert copy.name == "copy"
  
      new = Index(copy)
      assert new.name == "copy"
  
      new.name = "new"
      assert orig.name == "original"
      assert copy.name == "copy"
      assert new.name == "new"
  
file_path: pandas/pandas/tests/indexes/ranges/test_constructors.py
imports: from datetime import datetime
  import numpy
  import pytest
  from pandas import Index, RangeIndex, Series
  import pandas._testing
label_desc: Use image node_id 8 for calling the TestRangeIndexConstructors obj's underlying member method code with example usage: obj.test_constructor_name() without return types