Human Notes:
Basic shared functionality used throughout the stack. Canonicalise it here so
equivalent implementations do not drift.
Codex:
Add non-raising tensor capability predicates and a lazy module proxy for
native-op families. Registration and condition evaluation can use these
helpers without importing a DSL runtime, while each family retains its own
hardware allowlist and geometry checks. Centralizing the common predicates
prevents equivalent implementations from drifting.
No operators are registered in this commit.
Test Plan:
```
spin quicklint
python test/python_native/test_native_utils.py
```
Authored with assistance from an AI coding agent.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/195049
Approved by: https://github.com/karthickai, https://github.com/njriasan