input: Write a function to construct a Bash script that can install a specified software version. If the software version is provided, the script should download, extract, configure, compile, and install it. If no version is provided, the script should output an error message and exit.
  assert install_software("Python 3.8.5")=='''#!/bin/bash
  
  # Download latest version of Python
  curl -O https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tgz
  
  # Extract the tgz file
  tar -xzf Python-3.8.5.tgz
  
  # Move into the Python directory
  cd Python-3.8.5
  
  # Run the configure script
  ./configure
  
  # Compile and install
  make
  make install'''
  assert install_software("")=="Error: No software version provided"
output: def install_software(version):
      if not version:
          return "Error: No software version provided"
      return f'''#!/bin/bash
  
  # Download latest version of Python
  curl -O https://www.python.org/ftp/python/{version}/Python-{version}.tgz
  
  # Extract the tgz file
  tar -xzf Python-{version}.tgz
  
  # Move into the Python directory
  cd Python-{version}
  
  # Run the configure script
  ./configure
  
  # Compile and install
  make
  make install'''