code: def stage_tc_batch(self, owner, staging_data):
          
          batch = self.tcex.batch(owner)
          for group in staging_data.get('group') or []:
              # add to redis
              variable = group.pop('variable', None)
              path = group.pop('path', None)
              data = self.path_data(group, path)
              # update group data
              if group.get('xid') is None:
                  # add xid if one doesn't exist
                  group['xid'] = self.stage_tc_batch_xid(group.get('type'), group.get('name'), owner)
              # add owner name
              group['ownerName'] = owner
              # add to batch
              batch.add_group(group)
              # create tcentity
              if variable is not None and data is not None:
                  self.stage_redis(variable, self.stage_tc_group_entity(data))
          for indicator in staging_data.get('indicator') or []:
              # add to redis
              variable = indicator.pop('variable', None)
              path = indicator.pop('path', None)
              if indicator.get('xid') is None:
                  indicator['xid'] = self.stage_tc_batch_xid(
                      indicator.get('type'), indicator.get('summary'), owner
                  )
              indicator['ownerName'] = owner
              # add to batch after extra data has been popped
              batch.add_indicator(indicator)
              data = self.path_data(dict(indicator), path)
              if variable is not None and data is not None:
                  # if isinstance(data, (dict)):
                  # tcentity uses value as the name
                  #     data['value'] = data.pop('summary')
                  self.stage_redis(variable, self.stage_tc_indicator_entity(data))
          # submit batch
          batch_results = batch.submit()
          self.log.debug('[stage] Batch Results: {}'.format(batch_results))
          for error in batch_results.get('errors') or []:
              self.log.error('[stage] {}'.format(error))
docs: Stage data in ThreatConnect Platform using batch API.
  
          Args:
              owner (str): The ThreatConnect owner to submit batch job.
              staging_data (dict): A dict of ThreatConnect batch data.