<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _update_nic_data_from_nic_info_based_on_model(self, nic_dict, item, port, mac):
 """This method updates with port number and corresponding mac :param nic_dict: dictionary contains port number and corresponding mac :param item: dictionary containing nic details :param port: Port number :param mac: mac-address """

        if 'G7' in self.model:
            nic_dict[port] = mac
        else:
            location = item['LOCATION']['VALUE']
            if location == 'Embedded':
                nic_dict[port] = mac