code: def parse_field_content(field_name, content):
      """Parse content fields if nested using dot notation, else return content as is.
      e.g. for acrray content and field_name casebody.data.opinions.text, we return
      content[casebody][data][opinions][text]. If any nest level is an array we return only the
      first instance of this array. e.g. if opinions is an array, we return
      content[casebody][data][opinions][0][text].
  
      Args:
          field_name ([str]): [description]
          content ([dict]): [description]
  
      Returns:
          [str]: content of field
      """
  
      if "." not in field_name:
          return content[field_name]
      else:
          fields = field_name.split(".")
          for field in fields:
              content = content[field]
              if isinstance(content, list):
                  content = content[0]
          return content
  
file_path: neuralqa/neuralqa/utils/data_utils.py
imports: from elasticsearch import Elasticsearch
  import os
  import zipfile
  import shutil
  import urllib.request
  import logging
  import lzma
  import json
  import tarfile
  import hashlib
label_desc: Use image node_id 5 for calling a global function with example usage: parse_field_content(field_name, content) and returns: content, content