code: def get_inasafe_code_path(custom_inasafe_path=None):
      
  
      inasafe_code_path = os.path.abspath(
          os.path.join(os.path.dirname(__file__), '..'))
  
      if custom_inasafe_path is not None:
          inasafe_code_path = custom_inasafe_path
      return inasafe_code_path
docs: Determine the path to inasafe location.
  
      :param custom_inasafe_path: Custom inasafe project location.
      :type custom_inasafe_path: str
  
      :returns: Path to inasafe source code.
      :rtype: str