code: def require_minimum_pyarrow_version():
      
      # TODO(HyukjinKwon): Relocate and deduplicate the version specification.
      minimum_pyarrow_version = "0.12.1"
  
      from distutils.version import LooseVersion
      try:
          import pyarrow
          have_arrow = True
      except ImportError:
          have_arrow = False
      if not have_arrow:
          raise ImportError("PyArrow >= %s must be installed; however, "
                            "it was not found." % minimum_pyarrow_version)
      if LooseVersion(pyarrow.__version__) < LooseVersion(minimum_pyarrow_version):
          raise ImportError("PyArrow >= %s must be installed; however, "
                            "your version was %s." % (minimum_pyarrow_version, pyarrow.__version__))
docs: Raise ImportError if minimum version of pyarrow is not installed