code: def test_parse_args_sklearn_pipe_custom_defaults(
      self, parse_args, pipe_sklearn
  ):
      defaults = {
          "features__scale__copy": 123,
          "clf__fit_intercept": 456,
      }
      kwargs = {"features__scale__copy": 555, "clf__n_jobs": 5}
      parsed = parse_args(kwargs, defaults)
      pipe = parsed(pipe_sklearn)
      scaler = pipe.steps[0][1].transformer_list[0][1]
      clf = pipe.steps[-1][1]
  
      # cmd line args have precedence over defaults
      assert scaler.copy == 555
      assert clf.fit_intercept == 456
      assert clf.n_jobs == 5
  
imports: from math import cos
  from unittest.mock import Mock
  from unittest.mock import patch
  import numpy
  import pytest
  from sklearn.pipeline import FeatureUnion
  from sklearn.pipeline import Pipeline
  from sklearn.preprocessing import MinMaxScaler
  from torch import nn
  from torch.nn import RReLU
label_desc: Use image node_id 29 for calling the TestCli obj's underlying member method code with example usage: obj.test_parse_args_sklearn_pipe_custom_defaults(parse_args, pipe_sklearn) without return types