code: def import_data(self, data):
          
          if self.get_read_only() and self.is_locked():
              return
  
          if isinstance(data, BaseModel):
              data = data.export_data()
  
          if not isinstance(data, (dict, Mapping)):
              raise TypeError('Impossible to import data')
  
          self._import_data(data)
docs: Set the fields established in data to the instance