code: def serialize(self):
      s_obj = list()
      s_obj.append(
          dict(name=self._sample_id_name, property="sample_id")
      )
  
      if self._match_id_name:
          s_obj.append(
              dict(name=self._match_id_name, property="match_id")
          )
  
      if self._label_name:
          s_obj.append(
              dict(
                  name=self._label_name,
                  anonymous_name=self._anonymous_label_name,
                  property="label",
              )
          )
      if self._weight_name:
          s_obj.append(
              dict(
                  name=self._weight_name,
                  anonymous_name=self._anonymous_weight_name,
                  property="weight",
              )
          )
  
      if len(self._columns):
          for name, anonymous_name in zip(
              self._columns, self._anonymous_columns
          ):
              s_obj.append(
                  dict(
                      name=name,
                      anonymous_name=anonymous_name,
                      property="column",
                  )
              )
  
      return dict(
          fields=s_obj, anonymous_summary=self._anonymous_summary
      )
  
imports: import copy
  from typing import List, Union
  import pandas
  from .utils import AnonymousGenerator
label_desc: Use image node_id 26 for calling the Schema obj's underlying member method code with example usage: obj.serialize() and returns: dict