code: def test_preprocess_dataarray_name():
      """Test saving an array to netcdf/cf where dataset name starting with a digit with prefix include orig name."""
      from satpy import Scene
      from satpy.cf.data_array import _preprocess_data_array_name
  
      scn = Scene()
      scn["1"] = xr.DataArray([1, 2, 3])
      dataarray = scn["1"]
      # If numeric_name_prefix is a string, test add the original_name attributes
      out_da = _preprocess_data_array_name(
          dataarray, numeric_name_prefix="TEST", include_orig_name=True
      )
      assert out_da.attrs["original_name"] == "1"
  
      # If numeric_name_prefix is empty string, False or None, test do not add original_name attributes
      out_da = _preprocess_data_array_name(
          dataarray, numeric_name_prefix="", include_orig_name=True
      )
      assert "original_name" not in out_da.attrs
  
      out_da = _preprocess_data_array_name(
          dataarray, numeric_name_prefix=False, include_orig_name=True
      )
      assert "original_name" not in out_da.attrs
  
      out_da = _preprocess_data_array_name(
          dataarray, numeric_name_prefix=None, include_orig_name=True
      )
      assert "original_name" not in out_da.attrs
  
file_path: satpy/satpy/tests/cf_tests/test_dataaarray.py
imports: import numpy
  import xarray
  from satpy.tests.utils import make_dsq
label_desc: Use image node_id 1 for calling a global function with example usage: test_preprocess_dataarray_name() without return types