code: def built(path, version_string=None):
      """
      Check if '.built' flag has been set for that task.
  
      If a version_string is provided, this has to match, or the version is regarded as
      not built.
      """
      if version_string:
          fname = os.path.join(path, ".built")
          if not PathManager.exists(fname):
              return False
          else:
              with PathManager.open(fname, "r") as read:
                  text = read.read().split("\n")
              return len(text) > 1 and text[1] == version_string
      else:
          return PathManager.exists(os.path.join(path, ".built"))
  
imports: import importlib
  import json
  import time
  import datetime
  import os
  import requests
  import shutil
  import hashlib
  import tqdm
  import gzip
  import math
  import contextlib
  import parlai.utils.logging
  from parlai.utils.io import PathManager
label_desc: Use image node_id 1 for calling a global function with example usage: built(path, version_string) and returns: PathManager, False, unknown