code: def parse_local_file_schema(
      self,
      sample_id_name,
      columns,
      match_id_list,
      match_id_name,
      label_name,
      weight_name,
      anonymous_site_name=None,
  ):
      column_indexes = list(range(len(columns)))
  
      match_id_index, label_index, weight_index = None, None, None
      if match_id_list:
          if match_id_name and match_id_name not in match_id_list:
              raise ValueError(
                  f"{match_id_name} not exist match_id_list={match_id_list}"
              )
          if not match_id_name and len(match_id_list) > 1:
              raise ValueError(
                  f"Multi match id exists, specify one to be used"
              )
  
          match_id_name = match_id_list[0]
      elif match_id_name:
          match_id_list = [match_id_name]
  
      if match_id_name:
          match_id_index = self.extract_column_index_by_name(
              columns, column_indexes, match_id_name
          )
          match_id_list.pop(match_id_list.index(match_id_name))
      if label_name:
          label_index = self.extract_column_index_by_name(
              columns, column_indexes, label_name
          )
      if weight_name:
          weight_index = self.extract_column_index_by_name(
              columns, column_indexes, weight_name
          )
  
      for id_name in match_id_list:
          idx = columns.index(id_name)
          columns.pop(idx)
          column_indexes.pop(idx)
  
      self._schema = Schema(
          sample_id_name=sample_id_name,
          match_id_name=match_id_name,
          weight_name=weight_name,
          label_name=label_name,
          columns=columns,
      )
  
      self._schema.init_anonymous_names(anonymous_site_name)
      self.init_name_mapping()
  
      return dict(
          match_id_index=match_id_index,
          label_index=label_index,
          weight_index=weight_index,
          column_indexes=column_indexes,
      )
  
imports: import copy
  from typing import List, Union
  import pandas
  from .utils import AnonymousGenerator
label_desc: Use image node_id 12 for calling the SchemaManager obj's underlying member method code with example usage: obj.parse_local_file_schema(sample_id_name, columns, match_id_list, match_id_name, label_name, weight_name, anonymous_site_name) and returns: dict