code: def min_unsigned_type(x, min_size=8):
      """
      Return the smallest *unsigned* integer dtype
      that can represent the integer ``x``
      """
      for int_dtype in np.sctypes["uint"]:
          if (cudf.dtype(int_dtype).itemsize * 8) >= min_size:
              if 0 <= x <= np.iinfo(int_dtype).max:
                  return int_dtype
      # resort to using `uint64` and let numpy raise appropriate exception:
      return np.uint64(x).dtype
  
imports: import datetime
  from collections import namedtuple
  from decimal import Decimal
  import cupy
  import numpy
  import pandas
  import pyarrow
  from pandas.core.dtypes.common import infer_dtype_from_object
  import cudf
  from cudf._typing import DtypeObj
  from cudf.api.types import is_bool, is_float, is_integer
label_desc: Use image node_id 13 for calling a global function with example usage: min_unsigned_type(x, min_size) and returns: np, int_dtype