docstr: Test masking passwords.
docstr_tok: ["Test","masking","passwords","."]
code: def test_get_temporary_credentials_mask_secrets(
      self, mock_masker, patch_hook, accounts_ids
  ):
      """Test masking passwords."""
      result = EcrHook().get_temporary_credentials(
          registry_ids=accounts_ids
      )
      assert mock_masker.call_args_list == [
          mock.call(cr.password) for cr in result
      ]
  
file_path: airflow/tests/providers/amazon/aws/hooks/test_ecr.py
imports: from __future__ import annotations
  from unittest import mock
  import boto3
  import pytest
  from moto import mock_ecr
  from moto.core import DEFAULT_ACCOUNT_ID
  from airflow.providers.amazon.aws.hooks.ecr import EcrHook
label_desc: Use image node_id 5 for calling the TestEcrHook obj's underlying member method code with example usage: obj.test_get_temporary_credentials_mask_secrets(mock_masker, patch_hook, accounts_ids) without return types