code: def _hive_dirname(name, val):
      # Simple utility to produce hive directory name
      if pd.isna(val):
          val = "__HIVE_DEFAULT_PARTITION__"
      return f"{name}={val}"
  
imports: from __future__ import annotations
  import itertools
  import math
  import operator
  import shutil
  import tempfile
  import warnings
  from collections import defaultdict
  from contextlib import ExitStack
  from functools import partial, reduce
  from typing import Callable, Dict, List, Optional, Tuple
  from uuid import uuid4
  import numpy
  import pandas
  from pyarrow import dataset
  import cudf
  from cudf._lib import parquet
  from cudf.api.types import is_list_like
  from cudf.core.column import build_categorical_column, column_empty, full
  from cudf.utils import ioutils
  from cudf.utils.nvtx_annotation import _cudf_nvtx_annotate
label_desc: Use image node_id 18 for calling a global function with example usage: _hive_dirname(name, val) and returns: name, str, val