code: def test_scatter_dimension_numbers():
      attr = mhlo.ScatterDimensionNumbers.get(
          update_window_dims=[1, 2, 3],
          inserted_window_dims=[4, 5],
          scattered_dims_to_operand_dims=[6, 7],
          index_vector_dim=8,
      )
      assert attr is not None
      assert (
          str(attr) == "#mhlo.scatter<update_window_dims = [1, 2, 3], "
          "inserted_window_dims = [4, 5], "
          "scatter_dims_to_operand_dims = [6, 7], "
          "index_vector_dim = 8>"
      )
      assert attr.update_window_dims == [1, 2, 3]
      assert attr.inserted_window_dims == [4, 5]
      assert attr.scattered_dims_to_operand_dims == [6, 7]
      assert attr.index_vector_dim == 8
  
file_path: tensorflow/third_party/xla/xla/mlir_hlo/tests/python/attributes.py
imports: from mlir import ir
  from mlir.dialects import mhlo
label_desc: Use image node_id 15 for calling a global function with example usage: test_scatter_dimension_numbers() without return types