def _reformat_inspect(inspect):
    # For some reason, Docker inspect sometimes returns the pid in scientific
    # notation.
    inspect['State']['Pid'] = '%.0f' % float(inspect['State']['Pid'])

    np = _fold_port_key(inspect['NetworkSettings']['Ports'])
    if np:
        inspect['NetworkSettings']['Ports'] = np

    np = _fold_port_key(inspect['HostConfig']['PortBindings'])
    if np:
        inspect['HostConfig']['PortBindings'] = np

    docker_datetime = dp.parse(inspect['Created'])
    epoch_seconds = docker_datetime.strftime('%s')
    inspect['Created'] = epoch_seconds
Hook to set config keys in other tests.
dataset/ETHPy150Open cloudviz/agentless-system-crawler/crawler/dockerutils.py/_reformat_inspect--crossover with--dataset/ETHPy150Open koenbok/Cactus/cactus/tests/__init__.py/SiteTestCase.get_config_for_test