How To Make A Bootable USB Flash Disk For macOS

We all know that using a USB flash drive to install the operating system is the most stable and flexible, and it is the same for the macOS system. But how to use a macOS computer to create a USB boot disk? Let me tell you how to do it.