@staticmethod
def _extra_attributes_from_db_object(vnf_sw_image, db_sw_image,
    expected_attrs=None):
    """Method to help with migration of extra attributes to objects.

        """
    if expected_attrs is None:
        expected_attrs = []
    if 'metadata' in expected_attrs:
        setattr(vnf_sw_image, 'metadata', db_sw_image['metadetails'])
