parameters: (dtype)
return_statement: return dtype
docstring: Mimic numpy's casting for np.sum
docstring_summary: Mimic numpy's casting for np.sum
docstring_tokens: Mimic numpy s casting for np . sum
function: def get_sum_dtype(dtype):
      """Mimic numpy's casting for np.sum"""
      if dtype.kind == 'u' and np.can_cast(dtype, np.uint):
          return np.uint
      if np.can_cast(dtype, np.int_):
          return np.int_
      return dtype
function_tokens: def get_sum_dtype ( dtype ) : if dtype . kind == 'u' and np . can_cast ( dtype , np . uint ) : return np . uint if np . can_cast ( dtype , np . int_ ) : return np . int_ return dtype