class_docstr: Test basic functionality of AWIPS Tiled writer.
class_docstr_tok: ["Test","basic","functionality","of","AWIPS","Tiled","writer","."]
docstr: Test creating a single numbered tile.
docstr_tok: ["Test","creating","a","single","numbered","tile","."]
code: def test_basic_numbered_1_tile(
      self,
      extra_attrs,
      expected_filename,
      use_save_dataset,
      caplog,
      tmp_path,
  ):
      """Test creating a single numbered tile."""
      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, extra_attrs)
      with caplog.at_level(logging.DEBUG):
          w = AWIPSTiledWriter(base_dir=str(tmp_path), compress=True)
          if use_save_dataset:
              w.save_dataset(
                  input_data_arr, sector_id="TEST", source_name="TESTS"
              )
          else:
              w.save_datasets(
                  [input_data_arr],
                  sector_id="TEST",
                  source_name="TESTS",
              )
  
      assert "no routine matching" not in caplog.text
      assert "Can't format string" not in caplog.text
      all_files = glob(os.path.join(str(tmp_path), "TESTS_AII*.nc"))
      assert len(all_files) == 1
      assert os.path.basename(all_files[0]) == expected_filename
      for fn in all_files:
          unmasked_ds = xr.open_dataset(fn, mask_and_scale=False)
          output_ds = xr.open_dataset(fn, mask_and_scale=True)
          check_required_properties(unmasked_ds, output_ds)
          scale_factor = output_ds["data"].encoding["scale_factor"]
          np.testing.assert_allclose(
              input_data_arr.values,
              output_ds["data"].data,
              atol=scale_factor * 0.75,
          )
  
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 2 for calling the TestAWIPSTiledWriter obj's underlying member method code with example usage: obj.test_basic_numbered_1_tile(extra_attrs, expected_filename, use_save_dataset, caplog, tmp_path) without return types