code: def populate_dummy_data(data, names, details):
      """Populate variable with dummy data."""
      vname, sname = names
      desc, providers, settings = details
      if vname in providers:
          prov = providers[vname]
          # prov might be a function or directly an array that we assume will be of the correct shape:
          data[:] = (
              prov(vname, sname, settings) if callable(prov) else prov
          )
      else:
          # Otherwise we write the default data:
          if data.shape == ():
              # scalar case
              data = desc["default_data"]()
          else:
              data[:] = desc["default_data"]()
  
imports: from datetime import datetime
  import numpy
  import xarray
  from satpy.tests.reader_tests.test_netcdf_utils import FakeNetCDF4FileHandler
label_desc: Use image node_id 14 for calling a global function with example usage: populate_dummy_data(data, names, details) without return types