code: def _generate_lonlat_data(
      resolution: int,
  ) -> tuple[np.ndarray, np.ndarray]:
      shape = _shape_for_resolution(resolution)
      lat = np.repeat(
          np.linspace(35.0, 45.0, shape[0])[:, None], shape[1], 1
      )
      lat *= np.linspace(0.9, 1.1, shape[1])
      lon = np.repeat(
          np.linspace(-45.0, -35.0, shape[1])[None, :], shape[0], 0
      )
      lon *= np.linspace(0.9, 1.1, shape[0])[:, None]
      return lon.astype(np.float32), lat.astype(np.float32)
  
imports: from __future__ import annotations
  from datetime import datetime, timedelta
  from typing import Optional
  import numpy
  import pytest
  from pyhdf.SD import SD, SDC
label_desc: Use image node_id 2 for calling a global function with example usage: _generate_lonlat_data(resolution) and returns: lon,  lat