code: def contains_locked_file(directory: str):
      
      for root, subdirs, files in os.walk(directory):
          for filename in files:
              file_path = os.path.join(root, filename)
              try:
                  with open(file_path, 'a'):
                      pass
              except IOError:
                  logger.debug(f"Locked file: {file_path}")
                  return True
      return False
docs: :return: True if any of the files in the directory are in use. For example, if the dll is injected
      into the game, this will definitely return true.