fix: add missing return type annotations to type-checking utilities in generic.py (#44241)
Adds missing `-> bool`, `-> int`, and `-> str | None` return type annotations
to public utility functions in `utils/generic.py`, making them consistent with
the newer `is_timm_config_dict` and `is_timm_local_checkpoint` functions already
annotated in the same file. Zero behavior change — pure annotations only.
Functions updated:
- strtobool -> int
- infer_framework_from_repr -> str | None
- is_tensor -> bool
- is_numpy_array -> bool
- is_torch_tensor -> bool
- is_torch_device -> bool
- is_torch_dtype -> bool
- is_mlx_array -> bool
- is_flash_attention_requested -> bool