class_docstr: Base class for piecewise polynomials.
class_docstr_tok: ["Base","class","for","piecewise","polynomials","."]
code: def _get_dtype(self, dtype):
      if cupy.issubdtype(
          dtype, cupy.complexfloating
      ) or cupy.issubdtype(self.c.dtype, cupy.complexfloating):
          return cupy.complex_
      else:
          return cupy.float_
  
imports: import math
  import cupy
  from cupy._core import internal
  from cupy._core._scalar import get_typename
  from cupy_backends.cuda.api import runtime
  from cupyx.scipy import special
  from cupyx.scipy.interpolate._bspline import BSpline, _get_dtype
  import numpy
label_desc: Use image node_id 2 for calling the _PPolyBase obj's underlying member method code with example usage: obj._get_dtype(dtype) and returns: cupy, cupy