code: def test_infer_versioning_metadata_on_clean_repo(repo):
      """
      Test how `infer_versioning_metadata` fills its different fields
      when the user's repo is clean:
      `is_dirty`, `active_branch` and `diff_sha`.
      """
      vcs = resolve_config.infer_versioning_metadata(".git")
      assert not vcs["is_dirty"]
      assert vcs["active_branch"] == "master"
      # the diff should be empty so the diff_sha should be equal to the diff sha of an empty string
      assert vcs["diff_sha"] == hashlib.sha256(b"").hexdigest()
  
imports: import hashlib
  import logging
  import os
  import shutil
  import git
  import pytest
  import orion.core
  import orion.core.io.resolve_config
label_desc: Use image node_id 39 for calling a global function with example usage: test_infer_versioning_metadata_on_clean_repo(repo) without return types