def METHOD_NAME(self, sg_entity):
    entity_id = None
    if sg_entity is not None:
        entity_sg_id = sg_entity["id"]
        entity_type = sg_entity["type"]
        if entity_type == "Asset":
            entity_id = self.get_asset_id(entity_sg_id)
        elif entity_type == "Shot":
            entity_id = self.get_shot_id(entity_sg_id)
        elif entity_type == "Scene":
            entity_id = self.get_scene_id(entity_sg_id)
        elif entity_type == "Sequence":
            entity_id = self.get_sequence_id(entity_sg_id)
        elif entity_type == "Episode":
            entity_id = self.get_episode_id(entity_sg_id)
        else:
            return None
    return entity_id