(x)
| 141 | Result = Tuple[str, List[bool]] |
| 142 | |
| 143 | def is_floats(x) -> bool: |
| 144 | # check if it is float; List[float]; Tuple[float] |
| 145 | if isinstance(x, float): |
| 146 | return True |
| 147 | if isinstance(x, (list, tuple)): |
| 148 | return all(isinstance(i, float) for i in x) |
| 149 | if isinstance(x, np.ndarray): |
| 150 | return x.dtype == np.float64 or x.dtype == np.float32 |
| 151 | return False |
| 152 | |
| 153 | |
| 154 | def unsafe_execute( |