@classmethod
    def _package_from_spec(cls, spec):
        if isinstance(spec, six.string_types):
            return cls.Package(spec, None)
        else:
            package, properties = list(six.iteritems(spec))[0]
            version = properties.get('version', None)
            return cls.Package(package, version)
Takes an album_id and returns the album_name
dataset/ETHPy150Open openstack/sahara/sahara/plugins/images.py/SaharaPackageValidator._package_from_spec--crossover with--dataset/ETHPy150Open bahamas10/Viridian/AmpacheTools/dbfunctions.py/get_artist_name