code: def test_repeat(any_string_dtype):
      ser = Series(
          ["a", "b", np.nan, "c", np.nan, "d"], dtype=any_string_dtype
      )
  
      result = ser.str.repeat(3)
      expected = Series(
          ["aaa", "bbb", np.nan, "ccc", np.nan, "ddd"],
          dtype=any_string_dtype,
      )
      tm.assert_series_equal(result, expected)
  
      result = ser.str.repeat([1, 2, 3, 4, 5, 6])
      expected = Series(
          ["a", "bb", np.nan, "cccc", np.nan, "dddddd"],
          dtype=any_string_dtype,
      )
      tm.assert_series_equal(result, expected)
  
imports: from datetime import datetime, timedelta
  import numpy
  import pytest
  from pandas import DataFrame, Index, MultiIndex, Series
  import pandas._testing
  from pandas.core.strings.accessor import StringMethods
  from pandas.tests.strings import object_pyarrow_numpy
label_desc: Use image node_id 5 for calling a global function with example usage: test_repeat(any_string_dtype) without return types