code: def copy_learned_attributes(
      from_estimator: BaseEstimator, to_estimator: BaseEstimator
  ):
      attrs = {
          k: v
          for k, v in vars(from_estimator).items()
          if k.endswith("_") or k.startswith("_")
      }
      for k, v in attrs.items():
          setattr(to_estimator, k, v)
  
imports: import math
  import numbers
  import warnings
  from typing import List
  import numpy
  import pandas
  from sklearn.base import BaseEstimator
  from ...None import options
  from ...core import enter_mode
  from ...typing import TileableType
  from ...dataframe import DataFrame, Series
  from ...dataframe.core import DATAFRAME_TYPE, SERIES_TYPE
  from ...tensor import tensor
  from ...utils import parse_readable_size
label_desc: Use image node_id 3 for calling a global function with example usage: copy_learned_attributes(from_estimator, to_estimator) without return types