def _GetSourceSafely(obj):
  try:
    return inspect.getsource(obj)
  except __HOLE__:
    logs.LogOnce(
        _LOG.warning,
        'Unable to load source code for %s. Only logging this once.', obj)
    return ''
dataset/ETHPy150Open google/openhtf/openhtf/io/test_record.py/_GetSourceSafely