code: def nupicBindingsPrereleaseInstalled():
      """
      Make an attempt to determine if a pre-release version of nupic.bindings is
      installed already.
  
      @return: boolean
      """
      try:
          nupicDistribution = pkg_resources.get_distribution(
              "nupic.bindings"
          )
          if pkg_resources.parse_version(
              nupicDistribution.version
          ).is_prerelease:
              # A pre-release dev version of nupic.bindings is installed.
              return True
      except pkg_resources.DistributionNotFound:
          pass  # Silently ignore.  The absence of nupic.bindings will be handled by
          # setuptools by default
  
      return False
  
file_path: nupic-legacy/setup.py
imports: import os
  import pkg_resources
  import sys
  from setuptools import setup, find_packages, Extension
  from setuptools.command.test import test
label_desc: Use image node_id 2 for calling a global function with example usage: nupicBindingsPrereleaseInstalled() and returns: False, True