code: def test_conv_dimension_numbers():
      attr = mhlo.ConvDimensionNumbers.get(
          input_batch_dimension=0,
          input_feature_dimension=1,
          input_spatial_dimensions=[2, 3, 4],
          kernel_input_feature_dimension=0,
          kernel_output_feature_dimension=1,
          kernel_spatial_dimensions=[2, 3],
          output_batch_dimension=0,
          output_feature_dimension=1,
          output_spatial_dimensions=[2, 3],
      )
      assert (
          str(attr)
          == "#mhlo.conv<[b, f, 0, 1, 2]x[i, o, 0, 1]->[b, f, 0, 1]>"
      )
      assert attr is not None
      assert attr.input_batch_dimension == 0
      assert attr.input_feature_dimension == 1
      assert attr.input_spatial_dimensions == [2, 3, 4]
      assert attr.kernel_input_feature_dimension == 0
      assert attr.kernel_output_feature_dimension == 1
      assert attr.kernel_spatial_dimensions == [2, 3]
      assert attr.output_batch_dimension == 0
      assert attr.output_feature_dimension == 1
      assert attr.output_spatial_dimensions == [2, 3]
  
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 5 for calling a global function with example usage: test_conv_dimension_numbers() without return types