def is_block(modules):
        """Check if is HRModule building block."""
        if isinstance(modules, (HRModule, )):
            return True
        return False
Check if is HRModule building block.
mmpose/tests/test_models/test_backbones/test_hrnet.py