code: def _unpack_dtype(dtype):
      dtype_args = getattr(dtype, "__args__", ())
      if dtype_args:
          assert len(dtype_args) == 1
          if isinstance(dtype_args[0], TypeVar):
              # numpy.dtype[+ScalarType]
              assert dtype_args[0].__bound__ == np.generic
              dtype = Any
          else:
              # plain dtype
              dtype = dtype_args[0]
      return dtype
  
imports: import importlib
  import math
  from typing import TYPE_CHECKING, Any, Literal, Mapping, Optional, Sequence, Tuple, Type, TypeVar, Union
  import numpy
  from hypothesis import strategies
  from hypothesis._settings import note_deprecation
  from hypothesis.errors import HypothesisException, InvalidArgument
  from hypothesis.extra._array_helpers import NDIM_MAX, BasicIndex, BasicIndexStrategy, BroadcastableShapes, Shape, array_shapes, broadcastable_shapes, check_argument, check_valid_dims, mutually_broadcastable_shapes, order_check, valid_tuple_axes
  from hypothesis.internal.conjecture import utils
  from hypothesis.internal.coverage import check_function
  from hypothesis.internal.reflection import proxies
  from hypothesis.internal.validation import check_type
  from hypothesis.strategies._internal.numbers import Real
  from hypothesis.strategies._internal.strategies import Ex, T, check_strategy
  from hypothesis.strategies._internal.utils import defines_strategy
label_desc: Use image node_id 26 for calling a global function with example usage: _unpack_dtype(dtype) and returns: dtype