<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_local(self, hadoop_conf=None, hadoop_home=None):
 """\ Is Hadoop configured to run in local mode? By default, it is. [pseudo-]distributed mode must be explicitly configured. """

        conf = self.hadoop_params(hadoop_conf, hadoop_home)
        keys = ('mapreduce.framework.name',
                'mapreduce.jobtracker.address',
                'mapred.job.tracker')
        for k in keys:
            if conf.get(k, 'local').lower() != 'local':
                return False
        return True