code: def hash_sha512(*indata):
      
      hasher = hashlib.sha512()
      for data in indata:
          if isinstance(data, str):
              hasher.update(data.encode('utf-8'))
          elif isinstance(data, bytes):
              hasher.update(data)
          else:
              raise Exception('invalid input data: ' + str(data))
      return hasher.digest()
docs: Create SHA512 hash for input arguments.