def testIsExtraRequire_usedIdentifier(self):
    input_lines = [
        'goog.require(\'package.Foo.methodName\');',
        'var x = package.Foo.methodName();'
    ]

    token, namespaces_info = self._GetStartTokenAndNamespacesInfoForScript(
        input_lines, ['package'])

    self.assertTrue(namespaces_info.IsExtraRequire(token),
                    'Should require the package, not the method specifically.')
http://en.wikipedia.org/wiki/Sortino_ratio
dataset/ETHPy150Open google/closure-linter/closure_linter/closurizednamespacesinfo_test.py/ClosurizedNamespacesInfoTest.testIsExtraRequire_usedIdentifier--crossover with--dataset/ETHPy150Open quantopian/zipline/zipline/finance/risk/cumulative.py/RiskMetricsCumulative.calculate_sortino