code: def translate(self, package, into=None):
      
      if not package.local:
        raise ValueError('BinaryTranslator cannot translate remote packages.')
      if not isinstance(package, self._package_type):
        return None
      if not package.compatible(self._supported_tags):
        TRACER.log('Target package %s is not compatible with %s' % (
            package, self._supported_tags))
        return None
      into = into or safe_mkdtemp()
      target_path = os.path.join(into, package.filename)
      safe_copy(package.local_path, target_path)
      return DistributionHelper.distribution_from_path(target_path)
docs: From a binary package, translate to a local binary distribution.