You could check by:

```python
if blah and form is tensor._form:
   ...
```
I think