code: def test_upstream_packages_installed():
      # List of packages should match those specified in
      # `continuous_integration/scripts/install.sh`
  
      # FIXME: This test isn't sensitive to projects that use git tags
      # to determine versions (e.g. versioneer) when installed
      # directly from GitHub as the latest `main` branch can sometimes
      # be pointing to a released version of the project.
      packages = [
          "bokeh",
          # "dask",
          # "distributed",
          # "fastparquet",
          # "fsspec",
          "numpy",
          "pandas",
          # "partd",
          "pyarrow",
          # "s3fs",
          "scipy",
          # "sparse",
          # "zarr",
          # "zict",
      ]
      for package in packages:
          v = Version(importlib_metadata.version(package))
          assert v.is_prerelease or v.local is not None, (
              package,
              str(v),
          )
  
imports: from __future__ import annotations
  import os
  import importlib_metadata
  import pytest
  from packaging.version import Version
label_desc: Use image node_id 1 for calling a global function with example usage: test_upstream_packages_installed() without return types