code: def get_fields_loc(
      self,
      with_sample_id=True,
      with_match_id=True,
      with_label=True,
      with_weight=True,
  ):
      field_block_mapping = self._block_manager.field_block_mapping
      fields_loc = [[]] * len(field_block_mapping)
      for col_id, _block_id_tuple in field_block_mapping.items():
          fields_loc[col_id] = _block_id_tuple
  
      exclude_indexes = set()
      if not with_sample_id and self.schema.sample_id_name:
          exclude_indexes.add(
              self._schema_manager.get_field_offset(
                  self.schema.sample_id_name
              )
          )
  
      if not with_match_id and self.schema.match_id_name:
          exclude_indexes.add(
              self._schema_manager.get_field_offset(
                  self.schema.match_id_name
              )
          )
  
      if not with_label and self.schema.label_name:
          exclude_indexes.add(
              self._schema_manager.get_field_offset(
                  self.schema.label_name
              )
          )
  
      if not with_weight and self.schema.weight_name:
          exclude_indexes.add(
              self._schema_manager.get_field_offset(
                  self.schema.weight_name
              )
          )
  
      if not exclude_indexes:
          return fields_loc
  
      ret_fields_loc = []
      for field_index, field_loc in enumerate(fields_loc):
          if field_index not in exclude_indexes:
              ret_fields_loc.append(field_loc)
  
      return ret_fields_loc
  
imports: import numpy
  from .schema_manager import SchemaManager
  from .block_manager import BlockManager
  from .block_manager import BlockType
  import pandas
  from ..entity import types
  from typing import Union, List, Tuple
  from ..conf.default_config import DATAFRAME_BLOCK_ROW_SIZE
label_desc: Use image node_id 17 for calling the DataManager obj's underlying member method code with example usage: obj.get_fields_loc(with_sample_id, with_match_id, with_label, with_weight) and returns: ret_fields_loc, fields_loc