code: def _no_benchmark_expectations_applied(expected_perf):
      # With no benchmark, expect zero results for these metrics:
      expected_perf[["alpha", "beta"]] = None
      for col in ["benchmark_period_return", "benchmark_volatility"]:
          expected_perf.loc[
              ~pd.isnull(expected_perf[col]),
              col,
          ] = 0.0
      return expected_perf
  
file_path: zipline/tests/test_examples.py
imports: from functools import partial
  from operator import itemgetter
  import tarfile
  import matplotlib
  import pandas
  from zipline import examples
  from zipline.data.bundles import register, unregister
  from zipline.testing import test_resource_path, parameter_space
  from zipline.testing.fixtures import WithTmpDir, ZiplineTestCase, read_checked_in_benchmark_data
  from zipline.testing.predicates import assert_equal
  from zipline.utils.cache import dataframe_cache
label_desc: Use image node_id 2 for calling the ExamplesTests obj's underlying member method code with example usage: obj._no_benchmark_expectations_applied(expected_perf) and returns: expected_perf