code: def remove_label_fields_from_data(
      self, data: Dict[str, Any]
  ) -> Dict[str, Any]:
      if self.params.label_fields is None:
          return data
      for data_name in self.data_fields:
          label_fields_len = len(self.params.label_fields)
          for idx, field in enumerate(self.params.label_fields):
              field_values = []
              for bbox in data[data_name]:
                  field_values.append(bbox[-label_fields_len + idx])
              data[field] = field_values
          if label_fields_len:
              data[data_name] = [
                  d[:-label_fields_len] for d in data[data_name]
              ]
      return data
  
imports: from __future__ import absolute_import
  from abc import ABC, abstractmethod
  from typing import Any, Dict, Optional, Sequence, Tuple
  import numpy
  from .serialization import Serializable
label_desc: Use image node_id 13 for calling the DataProcessor obj's underlying member method code with example usage: obj.remove_label_fields_from_data(data) and returns: data, data