code: def norm_package_version(version):
      
      if version:
          version = ','.join(v.strip() for v in version.split(',')).strip()
  
          if version.startswith('(') and version.endswith(')'):
              version = version[1:-1]
  
          version = ''.join(v for v in version if v.strip())
      else:
          version = ''
  
      return version
docs: Normalize a version by removing extra spaces and parentheses.