docstr: The module name.
  
  >>> from jedi import Script
  >>> source = 'import json'
  >>> script = Script(source, path='example.py')
  >>> d = script.goto_definitions()[0]
  >>> print(d.module_name)                       # doctest: +ELLIPSIS
  json
docstr_tok: ["The","module","name",".",">",">",">","from","jedi","import","Script",">",">",">","source","=","'import","json'",">",">",">","script","=","Script","(","source",",","path='example.py","'",")",">",">",">","d","=","script.goto_definitions","(",")","[","0","]",">",">",">","print","(","d.module_name",")","#","doctest",":","+ELLIPSIS","json"]
code: def module_name(self):
      """
      The module name.
  
      >>> from jedi import Script
      >>> source = 'import json'
      >>> script = Script(source, path='example.py')
      >>> d = script.goto_definitions()[0]
      >>> print(d.module_name)                       # doctest: +ELLIPSIS
      json
      """
      return self._module.name.string_name
  
imports: import re
  from parso.python.tree import search_ancestor
  from jedi import settings
  from jedi.evaluate.utils import ignored, unite
  from jedi.cache import memoize_method
  from jedi.evaluate import imports
  from jedi.evaluate import compiled
  from jedi.evaluate.imports import ImportName
  from jedi.evaluate.context import instance
  from jedi.evaluate.context import ClassContext, FunctionExecutionContext
  from jedi.api.keywords import KeywordName
label_desc: Use image node_id 5 for calling the BaseDefinition obj's underlying member method code with example usage: obj.module_name() and returns: self