code: def test_insert2():
      # GH9250
      idx = (
          [("test1", i) for i in range(5)]
          + [("test2", i) for i in range(6)]
          + [("test", 17), ("test", 18)]
      )
  
      left = pd.Series(
          np.linspace(0, 10, 11), MultiIndex.from_tuples(idx[:-2])
      )
  
      left.loc[("test", 17)] = 11
      left.loc[("test", 18)] = 12
  
      right = pd.Series(
          np.linspace(0, 12, 13), MultiIndex.from_tuples(idx)
      )
  
      tm.assert_series_equal(left, right)
  
file_path: pandas/pandas/tests/indexes/multi/test_reshape.py
imports: from datetime import datetime
  import numpy
  import pytest
  import pytz
  import pandas
  from pandas import Index, MultiIndex
  import pandas._testing
label_desc: Use image node_id 2 for calling a global function with example usage: test_insert2() without return types