docstr: Check if the docstrings method can return something.
  
  Bare returns, returns valued None and returns from nested functions are
  disconsidered.
  
  Returns
  -------
  bool
      Whether the docstrings method can return something.
docstr_tok: ["Check","if","the","docstrings","method","can","return","something",".","Bare","returns",",","returns","valued","None","and","returns","from","nested","functions","are","disconsidered",".","Returns","--","--","--","-","bool","Whether","the","docstrings","method","can","return","something","."]
code: def method_returns_something(self):
      """
      Check if the docstrings method can return something.
  
      Bare returns, returns valued None and returns from nested functions are
      disconsidered.
  
      Returns
      -------
      bool
          Whether the docstrings method can return something.
      """
  
      def get_returns_not_on_nested_functions(node):
          returns = [node] if isinstance(node, ast.Return) else []
          for child in ast.iter_child_nodes(node):
              # Ignore nested functions and its subtrees.
              if not isinstance(child, ast.FunctionDef):
                  child_returns = get_returns_not_on_nested_functions(
                      child
                  )
                  returns.extend(child_returns)
          return returns
  
      tree = ast.parse(self.method_source).body
      if tree:
          returns = get_returns_not_on_nested_functions(tree[0])
          return_values = [r.value for r in returns]
          # Replace NameConstant nodes valued None for None.
          for i, v in enumerate(return_values):
              if isinstance(v, ast.NameConstant) and v.value is None:
                  return_values[i] = None
          return any(return_values)
      else:
          return False
  
imports: import argparse
  import ast
  import collections
  import doctest
  import functools
  import glob
  import importlib
  import inspect
  from io import StringIO
  import json
  import os
  import pydoc
  import re
  import string
  import sys
  import tempfile
  import textwrap
  import flake8.main.application
  import matplotlib
  import numpy
  from numpydoc.docscrape import NumpyDocString
  import pandas
  from pandas.io.formats.printing import pprint_thing
  import statsmodels.api
label_desc: Use image node_id 30 for calling the Docstring obj's underlying member method code with example usage: obj.method_returns_something() and returns: returns, any, False