code: def test_repr():
      # GH18203
      result = repr(Grouper(key="A", freq="h"))
      expected = (
          "TimeGrouper(key='A', freq=<Hour>, axis=0, sort=True, dropna=True, "
          "closed='left', label='left', how='mean', "
          "convention='e', origin='start_day')"
      )
      assert result == expected
  
      result = repr(Grouper(key="A", freq="h", origin="2000-01-01"))
      expected = (
          "TimeGrouper(key='A', freq=<Hour>, axis=0, sort=True, dropna=True, "
          "closed='left', label='left', how='mean', "
          "convention='e', origin=Timestamp('2000-01-01 00:00:00'))"
      )
      assert result == expected
  
imports: from datetime import datetime
  from operator import methodcaller
  import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, Series, Timestamp
  import pandas._testing
  from pandas.core.groupby.grouper import Grouper
  from pandas.core.indexes.datetimes import date_range
label_desc: Use image node_id 13 for calling a global function with example usage: test_repr() without return types