How Can I Show The Search Form Through Code In My Custom File?

If you wish to display the search form anywhere else other than the default theme’s positions use the following php code.