code: def run(self):
      # Fetch git commit hash and write down to commit_hash.txt before
      # shipped in tarball.
      commit_hash = None
      commit_hash_filepath = "doc/commit_hash.txt"
      try:
          commit_hash = subprocess.check_output(
              ["git", "rev-parse", "HEAD"]
          )
          commit_hash = commit_hash.decode("ascii")
          commit_hash = commit_hash.rstrip()
          print("Commit hash found : {}.".format(commit_hash))
          print("Writing it to {}.".format(commit_hash_filepath))
      except:
          pass
  
      if commit_hash:
          with open(commit_hash_filepath, "w") as f:
              f.write(commit_hash)
  
      super().run()
  
      try:
          os.remove(commit_hash_filepath)
          print(
              "Successfully removed temporary file {}.".format(
                  commit_hash_filepath
              )
          )
      except OSError as e:
          print("Error deleting %s - %s." % (e.filename, e.strerror))
  
imports: import sys
  import os
  import subprocess
  from pathlib import Path
  from setuptools import setup, Command
  from setuptools.command.sdist import sdist
label_desc: Use image node_id 1 for calling the sdist_sympy obj's underlying member method code with example usage: obj.run() without return types