code: def grids_available(*grid_names, check_network=True, check_all=False):
      """
      Check if the grids are available
      """
      if check_network and pyproj.network.is_network_enabled():
          return True
      available = [
          (
              Path(get_data_dir(), grid_name).exists()
              or Path(get_user_data_dir(), grid_name).exists()
          )
          for grid_name in grid_names
      ]
      if check_all:
          return all(available)
      return any(available)
  
file_path: pyproj/test/conftest.py
imports: import os
  import pickle
  from contextlib import contextmanager
  from pathlib import Path
  import numpy
  import pytest
  from packaging import version
  import pyproj
  from pyproj.datadir import get_data_dir, get_user_data_dir, set_data_dir
label_desc: Use image node_id 5 for calling a global function with example usage: grids_available() and returns: any, True, all