code: def _lazy_import_pyarrow_dataset() -> LazyModule:
      global _pyarrow_dataset
      if _pyarrow_dataset is None:
          try:
              from pyarrow import dataset as _pyarrow_dataset
          except ModuleNotFoundError:
              # If module is not found, set _pyarrow to False so we won't
              # keep trying to import it on every _lazy_import_pyarrow() call.
              _pyarrow_dataset = False
      return _pyarrow_dataset
  
imports: import importlib
  import logging
  import os
  import pathlib
  import random
  import sys
  import threading
  import time
  import urllib.parse
  from collections import deque
  from types import ModuleType
  from typing import TYPE_CHECKING, Any, Callable, Dict, Iterable, Iterator, List, Optional, Tuple, TypeVar, Union
  import numpy
  import ray
  from ray._private.utils import _get_pyarrow_version
  from ray.data._internal.arrow_ops.transform_pyarrow import unify_schemas
  from ray.data.context import WARN_PREFIX, DataContext
label_desc: Use image node_id 2 for calling a global function with example usage: _lazy_import_pyarrow_dataset() and returns: _pyarrow_dataset