code: def __init__(self, *args, **kwargs) -> None:
      super().__init__(*args, **kwargs)
  
      my_metadata = kwargs.pop("my_metadata", None)
      if args and isinstance(args[0], MySubclassWithMetadata):
          my_metadata = args[0].my_metadata  # type: ignore[has-type]
      self.my_metadata = my_metadata
  
imports: import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, MultiIndex, Series
  import pandas._testing
label_desc: Use image node_id 1 to create a new MySubclassWithMetadata object from inherited base classes: DataFrame with example: obj = MySubclassWithMetadata()