code: def transit_sign_data(self, name, input_data, key_version=None, algorithm=None, context=None, prehashed=None,
                            mount_point='transit', signature_algorithm='pss'):
          
          if algorithm is not None:
              url = '/v1/{0}/sign/{1}/{2}'.format(mount_point, name, algorithm)
          else:
              url = '/v1/{0}/sign/{1}'.format(mount_point, name)
  
          params = {
              'input': input_data
          }
          if key_version is not None:
              params['key_version'] = key_version
          if context is not None:
              params['context'] = context
          if prehashed is not None:
              params['prehashed'] = prehashed
          params['signature_algorithm'] = signature_algorithm
  
          return self._adapter.post(url, json=params).json()
docs: POST /<mount_point>/sign/<name>(/<algorithm>)
  
          :param name:
          :type name:
          :param input_data:
          :type input_data:
          :param key_version:
          :type key_version:
          :param algorithm:
          :type algorithm:
          :param context:
          :type context:
          :param prehashed:
          :type prehashed:
          :param mount_point:
          :type mount_point:
          :param signature_algorithm:
          :type signature_algorithm:
          :return:
          :rtype: