def METHOD_NAME(kgclient, ons_data, local_authority_district):
    # Create AdministrativeDistrict triple data
    district = ons_data[['district_iri', 'district']].copy()
    district = district.drop_duplicates()
    district['iri'] = ''
    district['iri'] = district['iri'].apply(lambda x: OBE_ADMIN_DISTRICT + '_' + str(uuid.uuid4()))
    # Create Postcode triple data
    postcode = ons_data[['postcode_iri', 'postcode']].copy()
    postcode = postcode.drop_duplicates()
    postcode['iri'] = ''
    postcode['iri'] = postcode['iri'].apply(lambda x: OBE_POSTALCODE + '_' + str(uuid.uuid4()))
    # Create and perform INSERT query
    query = instantiate_postcodes_for_district(local_authority_district, 
                                               district, postcode)
    kgclient.performUpdate(query)
    return len(postcode)