Gets the metadata for the asset branding.

        return: (osid.Metadata) - metadata for the asset branding.
        *compliance: mandatory -- This method must be implemented.*
512503
def get_branding_metadata(self):
        
        metadata = dict(self._branding_metadata)
        metadata.update({'existing_id_values': self.my_osid_object_form._my_map['brandingIds']})
        return Metadata(**metadata)
896696
def get_metadata(self, refresh=True):
        
        if refresh or not self._metadata:
            ident = self._id or self.get_full_name()
            if not ident:
                raise ConuException(
                    "This image does not have a valid identifier.")
            self._metadata = dict()
        return self._metadata
1180638
def get_dependency_metadata():
    ''''''
    link = os.path.join(_api_url(), 'meta.txt')
    return _process_req_txt(requests.get(link)).split('\n')
990245
def _get_metadata_path_for_display(self, name):
        
        try:
            # We need to access _get_metadata_path() on the provider object
            # directly rather than through this class's __getattr__()
            # since _get_metadata_path() is marked private.
            path = self._provider._get_metadata_path(name)

        # Handle exceptions e.g. in case the distribution's metadata
        # provider doesn't support _get_metadata_path().
        except Exception:
            return '[could not detect]'

        return path
948839
def broker_metadata(self, broker_id):
        
        return self._brokers.get(broker_id) or self._bootstrap_brokers.get(broker_id)
925313
def GetName(self):
        
        if self.AssetType == AssetType.GoverningToken:
            return "NEO"
        elif self.AssetType == AssetType.UtilityToken:
            return "NEOGas"

        if type(self.Name) is bytes:
            return self.Name.decode('utf-8')
        return self.Name
968697
def get_table_metadata(self, resource, resource_class):
        
        return self._make_metadata_request(meta_id=resource + ':' + resource_class, metadata_type='METADATA-TABLE')
936387
def get_metadata_for_nifti(in_file, bids_dir=None, validate=True):
    
    return _init_layout(in_file, bids_dir, validate).get_metadata(
        str(in_file))
1373803
def get_courses_metadata(self):
        
        # Implemented from template for osid.learning.ActivityForm.get_assets_metadata_template
        metadata = dict(self._mdata['courses'])
        metadata.update({'existing_courses_values': self._my_map['courseIds']})
        return Metadata(**metadata)
1011575
def get_media_descriptions_metadata(self):
        
        metadata = dict(self._media_descriptions_metadata)
        metadata.update({'existing_string_values': [t['text'] for t in self.my_osid_object_form._my_map['mediaDescriptions']]})
        return Metadata(**metadata)
1131997
def get_rubric_metadata(self):
        
        # Implemented from template for osid.resource.ResourceForm.get_group_metadata_template
        metadata = dict(self._mdata['rubric'])
        metadata.update({'existing_id_values': self._my_map['rubricId']})
        return Metadata(**metadata)
547398
def get_alt_texts_metadata(self):
        
        metadata = dict(self._alt_texts_metadata)
        metadata.update({'existing_string_values': [t['text'] for t in self.my_osid_object_form._my_map['altTexts']]})
        return Metadata(**metadata)
360873
def get_asset_id(self):
        
        # Implemented from template for osid.learning.Activity.get_objective_id
        if not bool(self._my_map['assetId']):
            raise errors.IllegalState('asset empty')
        return Id(self._my_map['assetId'])
462708
def get_metadata(self):
        
        if self._metadata is None:
            self._metadata = ImageMetadata()
        inspect_to_metadata(self._metadata, self.inspect(refresh=True))
        return self._metadata
555418
def metadata(self):
        
        from ambry.metadata.schema import Top  # cross-module import
        top = Top()
        top.build_from_db(self.dataset)
        return top
876749
def get_copyright_registration_metadata(self):
        
        # Implemented from template for osid.resource.ResourceForm.get_group_metadata_template
        metadata = dict(self._mdata['copyright_registration'])
        metadata.update({'existing_string_values': self._my_map['copyrightRegistration']})
        return Metadata(**metadata)
871913
def get_metadata(self, key) -> str:
        
        return self.metadata[key] if key in self.metadata else None