code: def format_payload(enc, **kwargs):
      '''
      Pass in the required arguments for a payload, the enc type and the cmd,
      then a list of keyword args to generate the body of the load dict.
      '''
      payload = {'enc': enc}
      load = {}
      for key in kwargs:
          load[key] = kwargs[key]
      payload['load'] = load
      return package(payloadf format_payload(enc, **kwargs):
      '''
      Pass in the required arguments for a payload, the enc type and the cmd,
      then a list of keyword args to generate the body of the load dict.
      '''
      payload = {'enc': enc}
      load = {}
      for key in kwargs:
          load[key] = kwargs[key]
      payload['load'] = load
      return package(payload)
docs: Pass in the required arguments for a payload, the enc type and the cmd,
      then a list of keyword args to generate the body of the load dict.