code: def _locked_tmp_dir_size(lock_filename):
    
    task_uid = _task_uid_from_lock_file(lock_filename)
    try:
      return _dir_size(
          _temp_download_dir(_module_dir(lock_filename), task_uid))
    except tf.errors.NotFoundError:
      return 0
docs: Returns the size of the temp dir pointed to by the given lock file.