def METHOD_NAME(record: dict) -> Optional[str]:
    """Dictionary key order impacts Elasticsearch behavior!!!"""
    if record["naics_code"] is None:
        return None
    return json.dumps({"code": record["naics_code"], "description": record["naics_description"]})