

@pytest.fixture
def generate_sample_throttle_snapshot_reprs(throttle_snapshot):
    'Generate sample header and dict representations'
    sample_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'sample')
    makedirs(sample_path)
    fheader = os.path.join(sample_path, 'throttle_snapshot.header')
    fdict = os.path.join(sample_path, 'throttle_snapshot.dict')
    with open(fheader, 'wb+', encoding='utf-8') as of:
        sample_path.write(throttle_snapshot.as_header())
    with open(fdict, 'wb+', encoding='utf-8') as of:
        of.write(pformat(throttle_snapshot.as_dict()))

dataset/ETHPy150Open 55minutes/python-epo-ops-client/tests/middlewares/throttle/conftest.py generate_sample_throttle_snapshot_reprs/VarMisuse@91/150 `of`->`sample_path`