class_docstr: Test basic functionality of AWIPS Tiled writer.
class_docstr_tok: ["Test","basic","functionality","of","AWIPS","Tiled","writer","."]
docstr: Test creating a multiple numbered tiles.
docstr_tok: ["Test","creating","a","multiple","numbered","tiles","."]
code: def test_basic_numbered_tiles(self, tile_count, tile_size, tmp_path):
      """Test creating a multiple numbered tiles."""
      from satpy.tests.utils import CustomScheduler
      from satpy.writers.awips_tiled import AWIPSTiledWriter
  
      data = _get_test_data()
      area_def = _get_test_area()
      input_data_arr = _get_test_lcc_data(data, area_def)
      w = AWIPSTiledWriter(base_dir=str(tmp_path), compress=True)
      save_kwargs = dict(
          sector_id="TEST",
          source_name="TESTS",
          tile_count=tile_count,
          tile_size=tile_size,
          extra_global_attrs={"my_global": "TEST"},
      )
      should_error = tile_count is None and tile_size is None
      if should_error:
          with dask.config.set(
              scheduler=CustomScheduler(0)
          ), pytest.raises(ValueError, match=r"Either.*tile_count.*"):
              w.save_datasets([input_data_arr], **save_kwargs)
      else:
          with dask.config.set(
              scheduler=CustomScheduler(1 * 2)
          ):  # precompute=*2
              w.save_datasets([input_data_arr], **save_kwargs)
  
      all_files = glob(os.path.join(str(tmp_path), "TESTS_AII*.nc"))
      expected_num_files = 0 if should_error else 9
      assert len(all_files) == expected_num_files
      for fn in all_files:
          unmasked_ds = xr.open_dataset(fn, mask_and_scale=False)
          masked_ds = xr.open_dataset(fn, mask_and_scale=True)
          check_required_properties(unmasked_ds, masked_ds)
          assert unmasked_ds.attrs["my_global"] == "TEST"
          assert unmasked_ds.attrs["sector_id"] == "TEST"
          assert "physical_element" in unmasked_ds.attrs
          stime = input_data_arr.attrs["start_time"]
          assert unmasked_ds.attrs["start_date_time"] == stime.strftime(
              "%Y-%m-%dT%H:%M:%S"
          )
  
imports: import logging
  import os
  import shutil
  from datetime import datetime, timedelta
  from glob import glob
  import dask
  import dask.array
  import numpy
  import pytest
  import xarray
  from pyproj import CRS
  from satpy.resample import update_resampled_coords
label_desc: Use image node_id 4 for calling the TestAWIPSTiledWriter obj's underlying member method code with example usage: obj.test_basic_numbered_tiles(tile_count, tile_size, tmp_path) without return types