code: def create_result_object(result):
      
      _result = {
          'tcid': result.get_tc_name(),
          'campaign': result.campaign,
          'cre': {
              'user': result.tester
          },
          'job': {
              'id': result.job_id
          },
          'exec': {
              'verdict': result.get_verdict(),
              'duration': result.duration,
              'note': result.get_fail_reason(),
              'dut': {
                  'count': result.dut_count,
                  'type': result.dut_type
              },
              'sut': {
                  'branch': result.build_branch,
                  'commitId': result.buildcommit,
                  'buildDate': result.build_date,
                  'buildSha1': result.build_sha1,
                  'buildUrl': result.build_url,
                  'gitUrl': result.build_git_url,
                  'cut': result.component,  # Component Under Uest
                  'fut': result.feature    # Feature Under Test
              },
              'env': {
                  'framework': {
                      'name': result.fw_name,
                      'ver': result.fw_version
                  }
              },
              "logs": []
          }
      }
  
      if result.dut_resource_id:
          _result["exec"]["dut"]["sn"] = result.dut_resource_id
  
      if result.dut_vendor and result.dut_vendor[0]:
          _result["exec"]["dut"]["vendor"] = result.dut_vendor[0]
      if result.dut_models and result.dut_models[0]:
          _result["exec"]["dut"]["model"] = result.dut_models[0]
      # pylint: disable=len-as-condition
      if len(result.dut_models) == 1 and len(result.dut_resource_id) == 1:
          _result["exec"]["dut"]["sn"] = result.dut_resource_id[0]
  
      return remove_empty_from_dict(_result)
docs: Create cloud result object from Result.
  
      :param result: Result
      :return: dictionary