code: def _dtype_and_shape_from_args(args):
      if len(args) <= 1:
          # Zero args: ndarray, _SupportsArray
          # One arg: ndarray[type], _SupportsArray[type]
          shape = Any
          dtype = _unpack_dtype(args[0]) if args else Any
      else:
          # Two args: ndarray[shape, type], NDArray[*]
          assert len(args) == 2
          shape = args[0]
          assert shape is Any
          dtype = _unpack_dtype(args[1])
      return (
          scalar_dtypes() if dtype is Any else np.dtype(dtype),
          array_shapes(max_dims=2) if shape is Any else shape,
      )
  
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 27 for calling a global function with example usage: _dtype_and_shape_from_args(args) and returns: unknown,  unknown