code: def read_file(filepath: str) -> str:
      
      # ? Check this is ok if absolute paths passed in
      filepath = os.path.expanduser(filepath)
      with open(filepath) as opened_file:  # type: IO
          file_read = opened_file.read()  # type: str
          return file_read
docs: Read a file and return it as a string