code: def read_sklearn_version():
          
          from sklearn import __version__ as sklearn_ver
          sklearn_ver = str(sklearn_ver).split('.')
          sklearn_ver = [int(v) for v in sklearn_ver]
          major, minor = sklearn_ver[0], sklearn_ver[1]
          patch = sklearn_ver[2] if len(sklearn_ver) >= 3 else 0
          return major, minor, patch
docs: Determine the installed version of sklearn