Can you change this  to

```python
try:
    return np.result_type(*arrays_and_dtypes)
except ValueError:
   return reduce(np.result_type, arrays_and_dtypes)
```