code: def dist_is_editable(dist):
      # type: (Distribution) -> bool
      
      for path_item in sys.path:
          egg_link = os.path.join(path_item, dist.project_name + '.egg-link')
          if os.path.isfile(egg_link):
              return True
      return False
docs: Return True if given Distribution is an editable install.