code: def get_file_path(dotted_path, extension='json'):
      
      # If the operating system's file path seperator character is in the string
      if os.sep in dotted_path or '/' in dotted_path:
          # Assume the path is a valid file path
          return dotted_path
  
      parts = dotted_path.split('.')
      if parts[0] == 'chatterbot':
          parts.pop(0)
          parts[0] = DATA_DIRECTORY
  
      corpus_path = os.path.join(*parts)
  
      if os.path.exists(corpus_path + '.{}'.format(extension)):
          corpus_path += '.{}'.format(extension)
  
      return corpus_path
docs: Reads a dotted file path and returns the file path.